ibllib.qc.task_extractors

Classes

TaskQCExtractor

class TaskQCExtractor(session_path, lazy=False, one=None, download_data=False, bpod_only=False, sync_collection=None, sync_type=None, task_collection=None)[source]

Bases: object

load_raw_data()[source]

Loads the TTLs, raw task data and task settings.

extract_data()[source]

Extracts and loads behaviour data for QC.

NB: partial extraction when bpod_only attribute is False requires intervals and intervals_bpod to be assigned to the data attribute before calling this function.

static rename_data(data)[source]

Rename the extracted data dict for use with TaskQC Splits ‘feedback_times’ to ‘errorCue_times’ and ‘valveOpen_times’. NB: The data is not copied before making changes

Parameters:

data – A dict of task data returned by the task extractors

Returns:

the same dict after modifying the keys