-
Notifications
You must be signed in to change notification settings - Fork 26
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]: Error reading nwb file in latest version of hdmf (3.3.1) #739
Comments
It looks like the error is somehow related to the |
Another example of a file on DANDI failing to open that came up in the CI for the NWBInspector... with pynwb.NWBHDF5IO(
path="https://dandiarchive.s3.amazonaws.com/blobs/da5/107/da510761-653e-4b81-a330-9cdae4838180",
mode="r",
load_namespaces=True,
driver="ros3",
) as io:
nwbfile = io.read() Works fine with TypeError: AbstractContainer.__init__: Expected at most 1 arguments ['name'], got 18: 0 positional and 18 keyword ['bits_per_pixel', 'comments', 'control', 'control_description', 'conversion', 'data', 'description', 'device', 'dimension', 'external_file', 'format', 'name', 'rate', 'resolution', 'starting_frame', 'starting_time', 'timestamps', 'unit'] specifically traced down to hdmf.build.errors.ConstructError: (root/processing/video_files/video/20170203_KIB_01_s1.1.h264 GroupBuilder {'attributes': {'comments': 'no comments', 'description': 'video of animal behavior from epoch', 'namespace': 'ndx-franklab-novela', 'neurodata_type': 'NwbImageSeries', 'object_id': 'b6a33b7f-68a6-41ab-a4eb-c9b06fc82f6b'}, 'groups': {}, 'datasets': {'external_file': root/processing/video_files/video/20170203_KIB_01_s1.1.h264/external_file DatasetBuilder {'attributes': {'starting_frame': array([0])}, 'data': <StrDataset for Closed HDF5 dataset>}, 'format': root/processing/video_files/video/20170203_KIB_01_s1.1.h264/format DatasetBuilder {'attributes': {}, 'data': 'external'}, 'timestamps': root/processing/video_files/video/20170203_KIB_01_s1.1.h264/timestamps DatasetBuilder {'attributes': {'interval': 1, 'unit': 'seconds'}, 'data': <Closed HDF5 dataset>}}, 'links': {'camera_device 0': root/processing/video_files/video/20170203_KIB_01_s1.1.h264/camera_device 0 LinkBuilder {'builder': root/general/devices/camera_device 0 GroupBuilder {'attributes': {'camera_name': 'sleep camera', 'lens': 'Unknown', 'manufacturer': 'Unknown', 'meters_per_pixel': 0.00055, 'model': 'Unknown', 'namespace': 'ndx-franklab-novela', 'neurodata_type': 'CameraDevice', 'object_id': '9e3fa905-100a-4905-9744-c39268747c74'}, 'groups': {}, 'datasets': {}, 'links': {}}}}}, "Could not construct NwbImageSeries object due to: AbstractContainer.__init__: Expected at most 1 arguments ['name'], got 18: 0 positional and 18 keyword ['bits_per_pixel', 'comments', 'control', 'control_description', 'conversion', 'data', 'description', 'device', 'dimension', 'external_file', 'format', 'name', 'rate', 'resolution', 'starting_frame', 'starting_time', 'timestamps', 'unit']") |
Update: I have found the problem and am looking into a solution. |
What happened?
Reading our nwb files fails with the newest version of hdmf, but works with 3.2.1
@rly has access to our nwb files and may be the best person to look at this if the traceback below doesn't make the solution obvious.
Steps to Reproduce
try to read an existing nwb file (perhaps only one that has our extensions)
Traceback
Operating System
Linux
Python Executable
Conda
Python Version
3.8
Package Versions
environment_for_issue.txt
Code of Conduct
The text was updated successfully, but these errors were encountered: