NeurodataWithoutBorders / matnwb

A Matlab interface for reading and writing NWB files
BSD 2-Clause "Simplified" License
50 stars 32 forks source link

[Bug]: Compound Typechecks should Enforce Order #526

Closed lawrence-mbf closed 1 year ago

lawrence-mbf commented 1 year ago

What happened?

h5py (and thus pynwb and nwbinspector) returns compound types as tuples which are indexed in a particular order. In MatNWB the only checks are for the existence of the fields and not their order. For complete compatibility, the nwb field order should also be

Steps to Reproduce

Run nwbinspector on any MatNWB data that uses a compound data type. When creating the compound type, the order of the fields should not match what is listed on the nwb-schema.

Error Message

No response

Operating System

Windows

Matlab Version

r2019a

Code of Conduct