Repository navigation
BlackrockRawIO: read spec 2.1 channels missing from the nev unscaled instead of raising - #1953
Open
h-mayorquin wants to merge 1 commit into
Open
h-mayorquin wants to merge 1 commit into
h-mayorquin wants to merge 1 commit into
Conversation
Contributor
Author
|
@cboulay could you review this one when you have time? |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Right now
BlackrockRawIOloads the gains of spec 2.1.nsXfiles from the.nev. The header of a spec 2.1.nsXonly lists the channel ids, with no scaling, and the.nevhas a digitization factor per electrode id. So the reader looks up each channel id in the.nev, and if one of them is not there it throws aKeyErrorand the whole file can't be read.This PR keeps the channels that are not in the
.nevunscaled and throws a warning with their ids instead of the error. That is what master gives withload_nev=False. We have a recording like that on gin, from a public dataset written by Central 7.0.3: its.nsXlists channel ids like 131073 (0x00020001) while its.nevnumbers the electrodes 1 to 32. I don't know why the ids were written like that. I added it toentities_to_test.I need this before the fix for #1942 as that fix reads the
.nevheaders also withload_nev=False. I also renamedelidanddig_factorto full names in that function.