-
Notifications
You must be signed in to change notification settings - Fork 6
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]: #255
Comments
Getting the same error. Actually, in my case this also happens with a round-trip test, where an NWB-zarr file is generated and then read again with hdmf-zarr 0.10.0 See PR here: SpikeInterface/spikeinterface#3598 |
The error appears to come from reading a reference from a zarr store that is not the current working directory. Below is a minimal working example. It fails when reading from "test/test.nwb" but succeeds when reading from "test.nwb". I will continue to investigate. from pynwb.testing.mock.file import mock_NWBFile
from pynwb.testing.mock.device import mock_Device
from pynwb.testing.mock.ecephys import mock_ElectricalSeries, mock_ElectrodeGroup
import numpy as np
from hdmf_zarr import NWBZarrIO
nwbfile = mock_NWBFile()
device = mock_Device(name="probe")
nwbfile.add_device(device)
nwbfile.add_electrode_column(name="channel_name", description="channel name")
electrode_group = mock_ElectrodeGroup(device=device)
nwbfile.add_electrode_group(electrode_group)
nwbfile.add_electrode(group=electrode_group, location="unknown", channel_name="channel_name1")
electrode_region = nwbfile.create_electrode_table_region(region=[0], description="electrodes")
electrical_series = mock_ElectricalSeries(
name="electrical_series_name",
electrodes=electrode_region,
data=np.array([1, 2]),
rate=1000.0,
)
nwbfile.add_acquisition(electrical_series)
import os
os.makedirs("test", exist_ok=True)
with NWBZarrIO("test/test.nwb", mode="w") as io:
io.write(nwbfile)
io = NWBZarrIO("test/test.nwb", mode="r")
read_nwbfile = io.read()
io.close() Error:
|
What happened?
I am trying to open a zarr nwb in order to append CCF information to the electrodes table, but it fails to open.
Note that .zmetadata is present in the Zarr NWB file. It's worth mentioning that I generated this hdmf-zarr==0.8.0 but and now trying to open it with latest (0.10.0), perhaps that is causing this.
Steps to Reproduce
Traceback
The text was updated successfully, but these errors were encountered: