visigoth.Experiment.run_trial

Experiment.run_trial(trial_info)[source]

Execute an individual trial of the experiment.

This method must be defined for each study.

It should accept a trial_info argument and return the object, possibly with updated values or additional data. This can be any type of object but it should be coordinated with the other methods. Specifically, the handling of the input should correspond with what is yielded by the generate_trials method, and the output should be something that the serialize_trial_info and save_data methods knows how to handle.

It is easiest for this to be a pandas Series, so that those methods do not need to be overloaded, but this is not strictly required to allow for more complicated designs.