[Bug]: VectorData with fixed name in spec #1037
Labels
category: bug
errors in the code or code behavior
priority: low
alternative solution already working and/or relevant to only specific user(s)
What happened?
It is possible to specify
VectorData
with a fixedname
set in the schema. However,DynamicTable.add_column
currently does not honor the fixed name andVectorData.__init__
does not do so either. As such, a user is able to create a column with a custom name even if thename
is fixed in the schema. This has come up as part the ndx-hed extension.Steps to Reproduce
See the following unit test on ndx-hed which creates a
HedTags
column (which has a fixed nameHED
) using a custom name set to"Blech"
https://github.com/hed-standard/ndx-hed/blob/43113e34aa867b6fa8c20a93e37c2581b0c7fb75/src/pynwb/tests/test_hed_tags.py#L54-L64
Traceback
Operating System
macOS
Python Executable
Conda
Python Version
3.12
Package Versions
No response
The text was updated successfully, but these errors were encountered: