-
Notifications
You must be signed in to change notification settings - Fork 151
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 errors when trying to run ecephys write_nwb with LIMS #1503
Conversation
LIMS calls the write_nwb module and specifies ecephys channel structure id and acronym as `manual_structure_id` and `manual_structure_acronym` in the input json. It appears #1075 modified the ecephys write_nwb schema from the expected values. This commit changes back the ecephys write_nwb schema to expect: `manual_structure_id` and `manual_structure_acronym`.
Previously (#1365), filtering and sorting of ecephys spike data was implemented for ecephys data. That PR added filtering/sorting of spike data when writing and loading from ecephys nwbfiles. It turns out the filtering/sorting implementation on the nwb writing side was assuming data in the units table that had yet to be added, resulting in errors when trying to write ecephys nwb files. This commit 1) fixes the spike filtering and sorting functionality 2) Removes filtering/sorting when loading from ecephys nwbfiles 3) applies some refactoring to more easily test adding probe data (e.g. unit tables) to the ecephys nwbfiles and 4) adds tests. Relates to: #1510
b5e89e8
to
614e0ab
Compare
@NileGraddis I noticed that there is a |
I think this looks good! Have you looked at NWB files created before/after these changes to make sure they're the same? @njmei @NileGraddis the |
@jsiegle Thanks for the review! These fixes are being merged into the There are additional changes to how ecephys data is stored in NWB files that still need to be made (#1419, #1421, #1422, #1423, #1482). Once that work is complete, I'm planning on running through all the neuropixels examples notebooks with new NWB files produced by this branch to make sure everything is working properly. Let me know if there are any other questions or concerns! |
That sounds good! I'd love to take a look at the new NWBs once they are ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Nice job on the probewise data test
This is a combination of 2 commits that resolve bugs that were preventing the ecephys
write_nwb
module from running to completion.