You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to HDMF 3.7.0, you could call io.read() more than once. Now you get a ValueError: ValueError: io has already been set for this container (name=root, type=<class 'pynwb.file.NWBFile'>)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/rly/Documents/NWB/hdmf/src/hdmf/utils.py", line 644, in func_callreturn func(args[0], **pargs)
File "/Users/rly/Documents/NWB/pynwb/src/pynwb/__init__.py", line 304, in readfile=super().read(**kwargs)
File "/Users/rly/Documents/NWB/hdmf/src/hdmf/backends/hdf5/h5tools.py", line 477, in readreturnsuper().read(**kwargs)
File "/Users/rly/Documents/NWB/hdmf/src/hdmf/utils.py", line 644, in func_callreturn func(args[0], **pargs)
File "/Users/rly/Documents/NWB/hdmf/src/hdmf/backends/io.py", line 61, in read
container.read_io =self
File "/Users/rly/Documents/NWB/hdmf/src/hdmf/container.py", line 257, in read_ioraiseValueError("io has already been set for this container (name=%s, type=%s)"%ValueError: io has already been set for this container (name=root, type=<class 'pynwb.file.NWBFile'>)
What happened?
Prior to HDMF 3.7.0, you could call
io.read()
more than once. Now you get a ValueError:ValueError: io has already been set for this container (name=root, type=<class 'pynwb.file.NWBFile'>)
This line https://github.com/hdmf-dev/hdmf/blob/dev/src/hdmf/container.py#L256 needs to be changed to also check that the new read_io object is not the same as the old read_io object.
Steps to Reproduce
Traceback
Operating System
macOS
Python Executable
Conda
Python Version
3.11
Package Versions
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: