-
Notifications
You must be signed in to change notification settings - Fork 90
get_nwbfile_version/get_nwb_version: Fix parsing pre-semver version specifiers #2118
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
get_nwbfile_version/get_nwb_version: Fix parsing pre-semver version specifiers #2118
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #2118 +/- ##
=======================================
Coverage 95.32% 95.32%
=======================================
Files 28 28
Lines 2845 2846 +1
Branches 735 735
=======================================
+ Hits 2712 2713 +1
Misses 77 77
Partials 56 56
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
48f6cb1 to
35eb2de
Compare
…pecifiers In commit NeurodataWithoutBorders/nwb-schema@dba02ff (update YAML specs with 2.1.0 specs, 2019-08-19) the help for nwb_version was changed in the following regard: --- a/core/nwb.file.yaml +++ b/core/nwb.file.yaml @@ -2,220 +2,231 @@ groups: [...] - name: nwb_version dtype: text - doc: 'File version string. COMMENT: Eg, NWB-1.0.0. This will be the name of the - format with trailing major, minor and patch numbers.' - value: 2.0b + value: 2.0.2 + doc: File version string. Use semantic versioning, e.g. 1.2.1. This will be the + name of the format with trailing major, minor and patch numbers. While adopting semantic versioning for nwb_version is a good step, care needs to be taken to allow reading older files. Versions of IPNWB prior to AllenInstitute/IPNWB@70c65d4 (Switch to newer NWB specification 2.2.4, 2020-04-15) did follow the old suggestion in prefixing nwb_version with `NWB-`. Let's disregard that prefix as was previsously done with the suffix 'b' in 26538b3 (Fix handling of version 2.0b (NeurodataWithoutBorders#1651), 2023-02-24).
35eb2de to
ca4faea
Compare
stephprince
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @t-b! To summarize, NWB files created after 2.0.2 should use semantic versioning, but these changes will allow files using the older NWB- prefix to be read
In commit NeurodataWithoutBorders/nwb-schema@dba02ff (update YAML specs with 2.1.0 specs, 2019-08-19) the help for nwb_version was changed in the following regard:
While adopting semantic versioning for nwb_version is a good step, care needs to be taken to allow reading older files.
Versions of IPNWB prior to AllenInstitute/IPNWB@70c65d4 (Switch to newer NWB specification 2.2.4, 2020-04-15) did follow the old suggestion in prefixing nwb_version with
NWB-.Let's disregard that prefix as was previsously done with the suffix 'b' in 26538b3 (Fix handling of version 2.0b (#1651), 2023-02-24).
Close #2117