visigoth.Experiment.generate_trials

Experiment.generate_trials()[source]

Generator that yields data for each trial.

This method must be defined for each study.

It should be written as a generator, which allows flexibility as to whether the trial information will be fully defined before the run or on the fly.

It should yield an object that provides trial-specific parameters. This will typically be a pandas Series, but other datatypes are fine as long as the run_trial method knows how to handle it.

The generator is iterated between each trial, so if it is going to do substantial computation, you will need to be mindful to specify a sufficient ITI distribution.