iblrig.online_plots.DataModel

Inheritance diagram of DataModel

class iblrig.online_plots.DataModel[source]

The data model is a pure numpy / pandas container for the choice world task. It contains: - a psychometrics dataframe that contains the count / choice and response time per signed contrast and block contingency - a last trials dataframe that contains 20 trials worth of data for the timeline view - various counters such as ntrials and water delivered

__init__(settings_file)[source]
Parameters:

settings_file (Path | None)

compute_end_session_criteria()[source]

Implement critera to change the color of the figure display, according to the specifications of the task.

update_trial(trial_data, bpod_data)[source]
Return type:

None

contrast_set = array([0.    , 0.0625, 0.125 , 0.25  , 0.5   , 1.    ])
ntrials = 0
ntrials_correct = 0
ntrials_engaged = 0
ntrials_nan = nan
percent_correct = nan
percent_error = nan
probability_set = array([0.2, 0.5, 0.8])
task_settings = None
time_elapsed = 0.0
water_delivered = 0.0