-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nwb - error: nwb_version not a proper semantic version #1485
Comments
Hi @nrsc, thanks for the report. I am not familiar with MIES, but I can try to help. Which version of Hi @CodyCBakerPhD, have you used Igor/MIES before? Thank you. |
The 2.2.4 reference is of the NWB Schema, not the 2.2.4 is also pretty old by now (by more than 4 years) so I'd strongly recommend updating the files to an even newer schema version, which might just magically fix this issue
I can't recall how the DANDI CLI maps invalidations/errors/etc from NWB Inspector to their convention, but that's not a standard check that I know of Most likely that the call to |
Thank you, @CodyCBakerPhD. What would be the easiest way to update the files to a newer schema version? Installing a newer version of Igor/MIES and exporting from the |
I'd check with @rly (I think we saw a similar issue recently with someone trying to write a file using custom R code) but I think all string datasets just need to be written using encoding like |
This might be a bug in the MIES converter to NWB where the "nwb_version" attribute is written as ASCII instead of UTF-8, and the dandi semantic version validator expects UTF-8 (which is what the NWB schema says it should be). @nrsc Can you share an example file to confirm? Or share a screenshot of HDFView when selecting the root of the file and selecting the "nwb_version" attribute on the root? |
Will follow up on this tomorrow. Thanks for the insight. Have a good nigh everyone. |
or just a
but overall indeed smells with software bug of a layer creating .nwb here. |
Hey all. @kabilar Thanks for checking in on this. As @CodyCBakerPhD mentioned 2.2.4 is the nwb version @rly here is the version from HDFView I'm not sure how much control I have over the version @CodyCBakerPhD, since I've been using MEIS to convert these pxp files to nwb. The functions are built into the software. That being said I would be interested in finding a way to either update the current files I have, or, if possible, mass convert the pxp files using another scripting option. Cheers |
It looks like |
@rly I can look to fix the issue when writing the files. That seems like a good option for now. As for the I will follow up with the MEIS devs and let them know of this issue, and see whether I can get some more info on updating the nwb version export. |
I'm one of the developers of MIES. We check all our data produced in CI against pynwb.validate. So if fixed length strings are not accepted anymore, the pynwb validator should complain. Same for the encoding: ASCII vs. UTF8 A similiar issue was fixed in pynwb last year, NeurodataWithoutBorders/pynwb#1668, so I'm suprised to see this bug. Edit: We always use the latest released pynwb version for the validation step. |
The bug in MIES was fixed. We now also use dandi validate, with some ignore pattern, to catch similiar issues. IMHO this issue can be closed. |
Hello,
I have a collection of nwb files that I exported to nwbv2 from pxp files with Igor/MEIS. While validating the nwb files with dandi, I get an error regarding the semantics of the nwb version. Example as follows.
Cheers,
Scott
The text was updated successfully, but these errors were encountered: