Experiment.abort()#

Experiment.abort(func)[source]#

Decorator for functions that work on the experiment session directly upon abortion.

The decorated function can have an arbitrary name. It must take an ExperimentSession object as its only argument (usually spelled as exp). You can use this decorator on as many function as you like.

The purpose of this decorator is to allow manipulation of the ExperimentSession object generated by Experiment.

See also

This decorator basically works the same as setup() and finish(), just at a different time.