Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neuromodulatorCW it a subclass of advancedCW #859

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ibllib/io/extractors/training_trials.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ def get_trial_repeat(trial):
elif 'contrast' in trial and isinstance(trial['contrast'], dict):
return trial['contrast']['type'] == 'RepeatContrast'
else:
# For advanced choice world before version 8.19.0 there was no 'debias_trial' field
# For advanced choice world and its subclasses before version 8.19.0 there was no 'debias_trial' field
# and no debiasing protocol applied, so simply return False
assert self.settings['PYBPOD_PROTOCOL'].startswith('_iblrig_tasks_advancedChoiceWorld')
assert (self.settings['PYBPOD_PROTOCOL'].startswith('_iblrig_tasks_advancedChoiceWorld') or
self.settings['PYBPOD_PROTOCOL'].startswith('ccu_neuromodulatorChoiceWorld'))
return False

trial_repeated = np.fromiter(map(get_trial_repeat, self.bpod_trials), int)
Expand Down
Loading