ibllib.io.extractors.habituation_trials

Habituation ChoiceWorld Bpod trials extraction.

Functions

extract_all

Extract all datasets from habituationChoiceWorld Note: only the datasets from the HabituationTrials extractor will be saved to disc.

Classes

HabituationTrials

class HabituationTrials(*args, **kwargs)[source]

Bases: BaseBpodTrialsExtractor

var_names = ('feedbackType', 'rewardVolume', 'stimOff_times', 'contrastLeft', 'contrastRight', 'feedback_times', 'stimOn_times', 'stimOnTrigger_times', 'intervals', 'goCue_times', 'goCueTrigger_times', 'itiIn_times', 'stimOffTrigger_times', 'stimCenterTrigger_times', 'stimCenter_times', 'position', 'phase')

A list of names for the extracted variables. These become the returned output keys.

Type:

tuple of str

extract_all(session_path, save=False, bpod_trials=False, settings=False, task_collection='raw_behavior_data', save_path=None)[source]

Extract all datasets from habituationChoiceWorld Note: only the datasets from the HabituationTrials extractor will be saved to disc.

Parameters:
  • session_path – The session path where the raw data are saved

  • save – If True, the datasets that are considered standard are saved to the session path

  • bpod_trials – The raw Bpod trial data

  • settings – The raw Bpod sessions

Returns:

a dict of datasets and a corresponding list of file names