ibllib.io.extractors.biased_trials

ibllib.io.extractors.biased_trials.get_contrastLR(session_path, save=False, data=False, settings=False)

Get left and right contrasts from raw datafile. Optionally, saves _ibl_trials.contrastLeft.npy and _ibl_trials.contrastRight.npy to alf folder.

Uses signed_contrast to create left and right contrast vectors.

Parameters:
  • session_path (str) – absolute path of session folder
  • save (bool, optional) – whether to save the corresponding alf file to the alf folder, defaults to False
Returns:

numpy.ndarray

Return type:

dtype(‘float64’)