TrialInfo class (discrete choice)

This object keeps all the data of a single trial.

class trajtrackerp.dchoice.TrialInfo(trial_num, csv_row, exp_config)
__init__(trial_num, csv_row, exp_config)
expected_response = None

The expected response button

The TrialInfo class is an extension of BaseTrialInfo so it contains all its properties too, as detailed below:

class trajtrackerp.common.BaseTrialInfo(trial_num, csv_row, exp_config)
__init__(trial_num, csv_row, exp_config)
csv_data = None

(Configuration) The data loaded from the CSV file (dict)

duration = None

The duration (in seconds) from the trial start (touching the screen) until its end (including the time taken for post-trial operations such as subjective confidence rating)

file_line_num = None

(Configuration) The line number (in the CSV file) that corresponds with this trial

finger_moves_max_time = None

(Configuration) The latest time (relatively to the touch-screen time) when the finger must move

finger_moves_min_time = None

(Configuration) The earliest time (relatively to the touch-screen time) when the finger can move

movement_time = None

Movement time of this trial: the time elapsed from movement initiation until making a response

results = None

results collected during the experiment (dict)

start_time = None

The time when the trial started

stopped_moving_event_dispatched = None

Whether the FINGER_STOPPED_MOVING event was already dispatched

targets_t0 = None

The time, relatively to the beginning of the trial, that counts as t=0 for target presentation. Targets configured to present at t=0 will are exactly at this time.

  • In “move-then-stimulus” mode, this is the frame right after the finger started moving
  • In “stimulus-then-move” mode, this is the time when the finger touched the screen
time_finger_lifted = None

The time within the trial (in seconds) when finger was lifted from screen in a valid manner

time_started_moving = None

The time when the finger started moving, relatively to the beginning of the trial

trial_num = None

The trial number

use_generic_targets = None

(Configuration) Whether non-text (generic) targets should be presented in this trial

use_text_targets = None

(Configuration) Whether text targets should be presented in this trial