hdmf-dev/hdmf

[Bug]: Cannot write added attributes to dataset in new data type subtype

Opened this issue · 0 comments

rly commented

What happened?

See NeurodataWithoutBorders/pynwb#1992 for an example.

At this point in HDMF's ObjectMapper hdmf-dev/hdmf@26d584c/src/hdmf/build/objectmapper.py#L1107, the spec does not contain the new attributes, so new attributes are not written. The spec object has the updated "doc" for "data" from the SpatialSeries type (as opposed to the "doc" for "data" from the TimeSeries type) but it does not contain the new "bounds" attribute introduced in SpatialSeries.

The issue appears to be due to resolution of the spec as it is being read.

Steps to Reproduce

See https://github.com/NeurodataWithoutBorders/pynwb/issues/1992 for an example.

Traceback

No response

Operating System

macOS

Python Executable

Conda

Python Version

3.12

Package Versions

No response