Open oruebel opened 4 years ago
@ajtritt I think I'll need your help with this one
This issue appears to be resolved now. The minimum working example (after updating to run in the latest HDMF) no longer generates the error.
Before closing, we should add a test for refining target_type of an object reference attribute to make sure.
Description
In the icephys extension we overwrite the target type for the DynamicTableRegion to point to a specific type of DynamicTable, e.g., here as follows:
This used to work but now fails at line:
https://github.com/hdmf-dev/hdmf/blob/2d467c0a4d22f0a4fa373152a2c6145e1440efbb/src/hdmf/build/objectmapper.py#L591
with the error message shown below. It looks like #279 added a check for overwritten attributes that now fails on the extension. If I change the line to
then the write works, but its not the right fix since it means we do not actually check the attribute.
Here the error message.
Here an example to reproduce the problem:
Checklist