You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@oliche The following should work at a rig for extracting trials:
# `task` variable here is an iblrig Session obj after calling run method
from ibllib.pipes.dynamic_pipeline import get_trials_tasks
extraction_tasks = get_trials_tasks(task.paths['SESSION_FOLDER'])
extraction_task = extraction_tasks[0]
extraction_task.setUp() # assert data present
trials = extraction_task.extract_behaviour(save=False)
The added complexity here is that in order for this to work, there is a need to create a realistic mock of the bpod data output, which is closely related to the state machine.
A way around it would be to collect actual data from each instance of the tasks we want to cover and feed this as fixture to the extractor.
see #695
The text was updated successfully, but these errors were encountered: