pynwb icon indicating copy to clipboard operation
pynwb copied to clipboard

[Feature]: Move NWBZarrIO to PyNWB

Open rly opened this issue 1 year ago • 0 comments

What would you like to see added to PyNWB?

This would be nice for users and developers. We can add "hdmf_zarr" as an optional dependency.

We are thinking of doing this when we merge hdmf-zarr into hdmf sometime in 2025.

Is your feature request related to a problem?

No response

What solution would you like?

In pynwb.__init__.py:

def _raise_hdmf_zarr_import_error():
    raise ImportError("hdmf_zarr is not installed. Please install hdmf_zarr to use NWBZarrIO.")

try:
    from hdmf_zarr import ZarrIO

    class NWBZarrIO(ZarrIO):
        # copy here
        pass

except ImportError:
    NWBZarrIO = _raise_hdmf_zarr_import_error

Do you have any interest in helping implement the feature?

Yes.

Code of Conduct

rly avatar Nov 07 '24 19:11 rly