ibllib.io.extractors.bpod_trials

Trials data extraction from raw Bpod output This module will extract the Bpod trials and wheel data based on the task protocol, i.e. habituation, training or biased.

Functions

extract_all

Extracts a training session from its path.

extract_all(session_path, save=True, bpod_trials=None, settings=None)[source]

Extracts a training session from its path. NB: Wheel must be extracted first in order to extract trials.firstMovement_times.

Parameters
  • session_path – the path to the session to be extracted

  • save – if true a subset of the extracted data are saved as ALF

  • bpod_trials – list of Bpod trial data

  • settings – the Bpod session settings

Returns

trials: Bunch/dict of trials

Returns

wheel: Bunch/dict of wheel positions

Returns

out_Files: list of output files