from pynwb.testing.mock.file import mock_NWBFile
from pynwb.testing.mock.ecephys import mock_ElectricalSeries
from hdmf_zarr import NWBZarrIO
nwbfile = mock_NWBFile()
nwbfile.add_acquisition(mock_ElectricalSeries())
with NWBZarrIO(path="/home/jovyan/Downloads/test_zarr.nwb", mode="w") as io:
io.write(nwbfile)
Leading to an error because the electrodes table has not been added to the file.
Yes.
What would you like to see added to PyNWB?
See hdmf-dev/hdmf-zarr#95 (comment)
Leading to an error because the electrodes table has not been added to the file.
Is your feature request related to a problem?
See above
What solution would you like?
Possible solutions:
mock_ElectricalSeriesshould requireelectrodesor create electrodes if not presentnwbfile.add_acquisition(electrical_series)orElectricalSeriesshould ensure that when it an ElectricalSeries is added to the NWBFile that the electrodes are added as wellDo you have any interest in helping implement the feature?
Yes.
Code of Conduct