ExperimentSession.finish()#
- ExperimentSession.finish()[source]#
Closes all previous pages and saves data.
This method gets called automatically with the last click in an experiment. You can manually call it earlier to mark a dataset as complete. This may be useful if you want to append some purely informational or optional pages at the end of your experiment.
Examples
- The experiment is finished on hiding the first page::
import alfred3 as al exp = al.Experiment()
@exp.member class First(al.Page):
- def on_exp_access(self):
self += al.TextEntry(name=”el1”)
- def on_first_hide(self):
self.exp.finish()
@exp.member class Second(al.Page):
- def on_exp_access(self):
self += al.TextEntry(name=”el2”)