-
Notifications
You must be signed in to change notification settings - Fork 249
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
Update NixRawIO to strictly follow RawIO data structure #1250
base: master
Are you sure you want to change the base?
Update NixRawIO to strictly follow RawIO data structure #1250
Conversation
For the NixRawIO this implies - loading of a single block only (as in nix there is no reason to assume consistent channel/stream structure across blocks) - introducing checks for channel & id consistencies across segments - introducing `autogenerate_*` keyword argument for ignoring non-rawio compatible channel names and unit ids in nix files - add static `get_block_count` method to permit scanning of nix file for number of blocks - the `block_index` argument is now already required at IO initialization
86e1faf
to
e3296df
Compare
- adjust parameters for loading additional tests files - fix code layout
@Kleinjohann Can you test this implementation with some of your nix files? |
With https://gin.g-node.org/NeuralEnsemble/ephy_testing_data/pulls/100 merged, tests are passing now. |
Hi! Thanks for the work! |
Todos:
|
@JuliaSprenger do you want to implement your "todo" item, or shall we merge now and fix that later? |
This PR rewrites the IO to read only data that follow the RawIO restrictions. For loading old data
autogenerate_*
keywords were introduced to permit loading data, but ignoring inconsistent channel / unit names. Since there is no structural relation between blocks in nix, it is only possible to load a single block at time. The substructure of that block has to follow the rawio constraints.This PR is requires test files added in https://gin.g-node.org/NeuralEnsemble/ephy_testing_data/pulls/100 .