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

Parse spikeglx nidq without gate or trigger number #1362

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

guptadivyansh
Copy link
Contributor

@guptadivyansh guptadivyansh commented Dec 12, 2023

The 'easy' regex in parse_spikeglx_fname in spikeglxraio.py expects the fname to end in .ap or .lf, which doesn't work if the input is actually an NIDaq file from SpikeGLX.

I just added another regex that works for the .nidq files, and some example filenames to comment what the regex targets.

@pep8speaks
Copy link

pep8speaks commented Dec 12, 2023

Hello @guptadivyansh! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2023-12-12 17:31:44 UTC

@guptadivyansh
Copy link
Contributor Author

@alejoe91 Please do have a look, thanks!

@alejoe91 alejoe91 added this to the 0.13.0 milestone Jan 26, 2024
@samuelgarcia
Copy link
Contributor

We should add a test to check this again the file "Noise4Sam_g0" wich has NIDQ

@alejoe91
Copy link
Contributor

We should add a test to check this again the file "Noise4Sam_g0" wich has NIDQ

@samuelgarcia actually this only deals with nidq filenames without the gate/trigger pattern. In all our test files, the NIDQ streams are correctly loaded from the first condition (here)

@alejoe91 alejoe91 merged commit 0b2e3ce into NeuralEnsemble:master Jan 31, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

4 participants