pynwb icon indicating copy to clipboard operation
pynwb copied to clipboard

[Bug]: Validator does not raise error on missing ``DynamicTableRegion.table/description`` attributes

Open oruebel opened this issue 3 years ago • 0 comments

What happened?

In https://github.com/NeurodataWithoutBorders/pynwb/issues/1468#issuecomment-1121507931 @CodyCBakerPhD shows a case where the required attributes table and description are being omitted/removed from a DynamicTableRegion. This (not surprisingly) causes the file to fail on read, however, validation still passes. This seems to indicate that there is some sort of bug or error with the validator, in that it either fails to check for (some) attributes or assumes that attributes are optional when they should be treated as required.

Steps to Reproduce

See the code example at https://github.com/NeurodataWithoutBorders/pynwb/issues/1468#issuecomment-1121507931

Traceback

See the traceback https://github.com/NeurodataWithoutBorders/pynwb/issues/1468#issue-1223304977

Operating System

macOS

Python Executable

Python

Python Version

3.8

Package Versions

No response

Code of Conduct

oruebel avatar May 09 '22 22:05 oruebel