-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Bug]: Data of VectorData wrapped in DataChunkIterator produces roundtrip error on read #952
Comments
@CodyCBakerPhD I think when creating a
I think specifying the id's via a DataChunkIterator should also be fine:
I think this is ultimately an issue in HDMF. To be honest, I'm not sure we can easily fix this, because the issue is that we won't know how to construct the id's until after we have finished writing all the columns in this case. I think it may be best to just make it explicit to require that
My guess is that because you have only 1 column in the table and that column is wrapped in a
This condition is there to create valid Lines 363 to 364 in e801d9e
|
Makes sense now that I understand As per usual my only request for this then is that something should have errored out more informatively earlier on, what caught me off guard is that I could write the initial file without issue So I say transfer this to HDMF and 'solution' is simply to catch this earlier and provide a better error during table write instructing that the IDs must be specified when using that approach, which is totally reasonable |
I agree. To be honest, I wasn't aware of this issue, and the bigger problem really is that this really resulted in an invalid NWB file, because the |
The suggested solution is to have error check in |
What happened?
Discovered while writing tests for hdmf-dev/hdmf-zarr#111
Note that if I remove the
DataChunkIterator
wrapper around thedata
in theVectorData
construction, the roundtrip issue goes awaySteps to Reproduce
Traceback
Operating System
Linux
Python Executable
Conda
Python Version
3.9
Package Versions
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: