NeurodataWithoutBorders / nwb-schema

Data format specification schema for the NWB neurophysiology data format
http://nwb-schema.readthedocs.io
Other
52 stars 16 forks source link

Wrong version number for version attribute of NWB file in NWB Schema version 2.2.0 #589

Open ehennestad opened 1 week ago

ehennestad commented 1 week ago

For the version 2.2.0 release of the nwb-schema the file version attribute in nwb.file.yaml is 2.1.0.

This is outdated now, but I am suspecting it is contributing to a whole class of different error messages when trying to open NWB Files in matnwb using nwbRead where the file is created with v2.2.0 but the nwb file version attribute is set to 2.1.0 due to this error in the schema.

I did a quick search in issues, but could not find any mention of this. Is this a known issue? If yes, please point me to discussions regarding this. If no, is there anything that can be done at this time?

As the hdmf_common namespace was introduced with v2.2.0 this is potentially a critical bug for nwb files created in matnwb using v2.2.0.

Edit: Assuming the correct versions of the schemas are embedded in the file, I don't think the above statement is correct.

https://github.com/NeurodataWithoutBorders/nwb-schema/blob/62c73400565afc28f67ede4f2e86023c33167cf8/core/nwb.file.yaml#L10

stephprince commented 1 week ago

Thanks for the issue @ehennestad.

@rly It looks like you had fixed the version mismatch previously, do you remember if there was any discussion about this or could you advise?

ehennestad commented 1 week ago

Great, I see that this was fixed by bumping version up to 2.2.1 ~1week later, so maybe this was not really exposed to users for a long time