alfred3.experiment#

This module contains the main experiment and experiment session objects.

What’s the difference between the Experiment and the ExperimentSession?

  • The Experiment class is the first thing you create in your script.py. Its purpose is simply to collect all pages and functions that you add to the experiment. For this purpose it offers decorators like setup and member. From this collection, it creates a new ExperimentSession for every new subject.

  • The ExperimentSession class is the main experiment organizer. This is the class that actually coordinates all the work in an ongoing experiment. When you interact with a Section’s or a Page’s exp attribute, you are actually interacting with the current ExperimentSession object.

Classes

Experiment

Used to construct the experiment in script.py.

ExperimentAdmin

ExperimentSession

Coordinates all parts of an experiment session.