Open sneakers-the-rat opened 10 months ago
Thanks for the issue, we'll take a look.
@mavaylon1
I'll tackle this.
Importing the packages corresponding to the custom namespaces seems to allow reading to work, if anyone needs a temporary fix.
Importing the packages corresponding to the custom namespaces seems to allow reading to work, if anyone needs a temporary fix.
Thanks for the note!
What happened?
Testing an export of a dataset that has a custom namespace/schema, and found that it isn't exported and so a subsequent read errors.
Taking a look at the
__cache_spec
method, it seems like the writer uses its own manager rather than the source file's manager: https://github.com/hdmf-dev/hdmf-zarr/blob/5e48ab5e04512c5f5151d0d372eb2284f85dfeaa/src/hdmf_zarr/backend.py#L284which is confirmed in a debugger. Setting a breakpoint at the start of that function:
and then going up to the initial call which has the source IO object:
If I do this just before calling
__cache_spec
:then the namespace is correctly written, but the read still errors. The namespace is listed in
namespaces
here: https://github.com/hdmf-dev/hdmf-zarr/blob/5e48ab5e04512c5f5151d0d372eb2284f85dfeaa/src/hdmf_zarr/backend.py#L207but when it reaches
BuildManager.load_namespaces
, thedeps
are empty. That's as far as i'm gonna make it tonight.Steps to Reproduce
Traceback
Operating System
macOS
Python Executable
Python
Python Version
3.11
Package Versions
environment_for_issue.txt
Code of Conduct