-
Notifications
You must be signed in to change notification settings - Fork 90
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
[MRG] fix(write.py): throw warning instead of error on conflicting bids versions #1147
[MRG] fix(write.py): throw warning instead of error on conflicting bids versions #1147
Conversation
…sions in dataset description
…ption to check user warning
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴🏽♂️ |
Sorry for the delay @fordmcdonald. This looks good to me. Could you please take a look at this section in the contributor documentation: https://github.com/mne-tools/mne-bids/blob/main/CONTRIBUTING.md#instructions-for-first-time-contributors and follow the points? Thank you! |
Codecov Report
@@ Coverage Diff @@
## main #1147 +/- ##
==========================================
- Coverage 97.57% 97.51% -0.06%
==========================================
Files 40 40
Lines 8655 8657 +2
==========================================
- Hits 8445 8442 -3
- Misses 210 215 +5
|
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
thanks @fordmcdonald |
PR Description
This PR fixes the issue where an error is thrown if the BIDSVersion defined in the dataset_description.json file does not match the MNE compliant BIDSVersion. This ensures that MNE functions in accordance with the backwards compatible nature of BIDS.
If there is a discrepancy between the versions, a user warning will be thrown and the dataset_description.json file will NOT be overwritten for preexisting keys.
Unit tests for the make_dataset_description function have been updated accordingly.
Resolves: #767 (comment)
Merge checklist
Maintainer, please confirm the following before merging.
If applicable: