[Bug]: Cannot add "bounds" attribute to SpatialSeries/data #1992
Labels
category: bug
errors in the code or code behavior
priority: medium
non-critical problem and/or affecting only a small set of NWB users
Milestone
What happened?
In NeurodataWithoutBorders/nwb-schema#567 (pending NWB schema 2.8.0), we added a new optional "bounds" field to "SpatialSeries/data". It turns out that the current version of PyNWB / HDMF does not support writing (and probably also validating) additional attributes to untyped datasets like "data". I am surprised that we have not encountered this before.
This line in HDMF's ObjectMapper https://github.com/hdmf-dev/hdmf/blob/26d584cc0a3e0985d0e053ab9eeaf5bf8849cd31/src/hdmf/build/objectmapper.py#L1107
does not add new attributes from the new spec.
The issue appears to be due to resolution of the spec. I will open a ticket in HDMF.
While we resolve this in HDMF, I propose we revert the addition of "bounds" to "SpatialSeries/data" to unblock the other schema/pynwb issues.
Steps to Reproduce
Traceback
# data__bounds is not written
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: