-
Notifications
You must be signed in to change notification settings - Fork 23
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
Repack Nwb Files #1003
base: main
Are you sure you want to change the base?
Repack Nwb Files #1003
Conversation
src/neuroconv/tools/nwb_helpers/_configuration_models/_hdf5_dataset_io.py
Outdated
Show resolved
Hide resolved
src/neuroconv/tools/nwb_helpers/_configuration_models/_hdf5_dataset_io.py
Outdated
Show resolved
Hide resolved
@CodyCBakerPhD, the code now reflects my vision for the API: The code then progresses along 2 paths:
lmk what you think! |
...est_backend_and_dataset_configuration/test_helpers/test_get_default_backend_configuration.py
Outdated
Show resolved
Hide resolved
print(nwbfile.acquisition["my_video"]) | ||
|
||
backend_config = get_default_backend_configuration(nwbfile, "hdf5") | ||
print(backend_config) # TODO: Figure out why this doesn't throw an error like Ben said it did |
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.
Can we add an integration test where we write a new NWB file with a different backend configuration?
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.
Hmm... You mean something like 'make a Zarr-backend copy of this existing HDF5-backend NWB file'? Or same type of backend (such as both HDF5) but different configuration?
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.
good question. Both, I guess. I just want to make sure this works end-to-end and does not require us to do anything funky in practice
@@ -262,3 +263,22 @@ def test_complex_zarr(zarr_nwbfile_path): | |||
|
|||
""" | |||
assert stdout.getvalue() == expected_print | |||
|
|||
|
|||
def test_000_ImageSeries(): |
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.
I would like to see many more tests here; starting with more basic types like TimeSeries
, DynamicTable
, etc. before working our way up to the edge case that is an ImageSeries (external vs. internal mode too on that)
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.
Keep in mind the intended point of this function; to start with objects that are either uncompressed, unchuncked, or badly chunked; and then we create a new copy of the file that has better compression and chunking on all applicable datasets
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1003 +/- ##
==========================================
- Coverage 91.25% 90.37% -0.88%
==========================================
Files 127 127
Lines 7555 7645 +90
==========================================
+ Hits 6894 6909 +15
- Misses 661 736 +75
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Fixes #892
Depends on hdmf-dev/hdmf#1172
Depends on hdmf-dev/hdmf-zarr#215