Repository navigation
BlackrockRawIO: read the nev headers when load_nev is False - #1954
Open
h-mayorquin wants to merge 4 commits into
Open
h-mayorquin wants to merge 4 commits into
h-mayorquin wants to merge 4 commits 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
load_nev=FalsemakesBlackrockRawIOignore the.nevfile completely. But spec 2.1.nsXfiles take their gains from the.nevheaders and every spec takesrec_datetimefrom them. So withload_nev=Falsespec 2.1 recordings come back unscaled and all recordings lose their date. SpikeInterface always passesload_nev=Falseand that is how SpikeInterface/spikeinterface#4911 was found.This PR reads the
.nevheaders whenever the file exists and keeps only the spikes and events behindload_nev. The new test reads a spec 2.1 file from gin withload_nev=Falseand checks its gains and date. This depends on #1953 as reading the headers withload_nev=Falsewould otherwise make the file with the odd channel ids throw here too. I also updated theload_nevdocstring, andavail_nevin the block annotations now reports whether the file exists. This should close #1942.