[Bug]: Resolving spec inheritance fails when attribute has same name as existing attr on another object #1121
Labels
category: bug
errors in the code or code behavior
priority: medium
non-critical problem and/or affecting only a small set of users
topic: extension
issues related to extensions or dynamic class generation
What happened?
From catalystneuro/ndx-microscopy#11 (comment)
The relevant spec:
After doing some digging, I found that because
ImagingSpec.origin_coordinates
has an attributeunit
andPlanarImagingSpace.grid_spacing
also has an attributeunit
, that when determining whetherPlanarImagingSpace.grid_spacing.unit
is inherited or not, HDMF says yes it is inherited because whenImagingSpec.origin_coordinates
is inherited and it has an attribute with the same name,unit
. That is not correct.I have a fix.
Steps to Reproduce
Traceback
No response
Operating System
macOS
Python Executable
Conda
Python Version
3.12
Package Versions
No response
The text was updated successfully, but these errors were encountered: