pynwb
pynwb copied to clipboard
[Feature]: Clean up HDMFIO.load_namespaces call
What would you like to see added to PyNWB?
Resolve TODO in https://github.com/NeurodataWithoutBorders/pynwb/pull/1911#issuecomment-2547220686 where the class method HDMFIO.load_namespaces requires passing io._file.
Is your feature request related to a problem?
https://github.com/hdmf-dev/hdmf-zarr/issues/293
What solution would you like?
I think an HDMFIO instance should be able to call load_namespaces on the open file handled by itself, regardless of backend, so the io._file call (which does not work consistently between HDF5IO and ZarrIO) is not needed.
Do you have any interest in helping implement the feature?
Yes.
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
- [x] Have you checked the Contributing document?
- [x] Have you ensured this change was not already requested?
This depends on changes in hdmf and hdmf-zarr linked above to be merged first