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

Fix missed first trial in nidq trials extractor #909

Open
k1o0 opened this issue Jan 20, 2025 · 0 comments
Open

Fix missed first trial in nidq trials extractor #909

k1o0 opened this issue Jan 20, 2025 · 0 comments
Assignees

Comments

@k1o0
Copy link
Contributor

k1o0 commented Jan 20, 2025

For many BWM sessions, the first trial is not extracted correctly as the FPGA starts acquiring before the first trial. Additionally, because the Bpod pulse for the first trial is longer, in these cases the first valve open time is sometimes incorrectly assigned as the first trial.

Below is an example session (69c9a415-f7fa-4208-887b-1417c1479b48) showing the FPGA Bpod pulse along with the clock-sync'd Bpod trial events (top) and incorrect FPGA trial events (bottom). There is one fewer trial than there should be.

Image

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

1 participant