Experiment_block module

class Experiment(const, subj_id)

A general class with attributes common to experiments

Parameters:
  • const (module) – local constants.py module (see example_experiment/constants.py) as example

  • subj_id – id for the subject

confirm_run_info()

Presents a GUI to confirm the settings for the run:

The following parameters will be set: run_number - run number subj_id - id assigned to the subject ttl_flag - should the program wait for the ttl pulse or not? For scanning THIS FLAG HAS TO BE SET TO TRUE

Args:

display_run_feedback(run_data)

Displays a score board for the tasks in the task_list

Parameters:

run_data (pd.DataFrame) – a dataframe containing the run data

init_run()

initializing the run: making sure a directory is created for the behavioral results getting run file Initializes all the tasks for a run

run()

run a run of the experiment

start_eyetracker()

sets up a connection with the eyetracker and start recording eye position

stop_eyetracker()

stop recording close edf file receive edf file?

  • receiving the edf file takes time and might be problematic during scanning

maybe it would be better to take the edf files from eyelink host computer afterwards