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

Run task QC in tests #659

Open
bimac opened this issue May 20, 2024 · 3 comments
Open

Run task QC in tests #659

bimac opened this issue May 20, 2024 · 3 comments
Assignees

Comments

@bimac
Copy link
Contributor

bimac commented May 20, 2024

see #695

@bimac bimac assigned oliche, bimac and k1o0 and unassigned bimac May 20, 2024
@k1o0
Copy link
Contributor

k1o0 commented May 22, 2024

@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)

@k1o0 k1o0 removed their assignment May 22, 2024
@oliche
Copy link
Member

oliche commented Sep 6, 2024

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.

@oliche
Copy link
Member

oliche commented Nov 5, 2024

There are also some tools for creating synthetic wheel data in the wheel extraction tests.
https://github.com/int-brain-lab/ibllib/blob/e110a244db60f67cd47d1e01c10a8faec132885c/ibllib/tests/qc/test_task_metrics.py#L207-L282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants