-
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: Add sessions as official suffix #1137
Conversation
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴🏽♂️ |
Codecov Report
@@ Coverage Diff @@
## main #1137 +/- ##
=======================================
Coverage 95.28% 95.28%
=======================================
Files 40 40
Lines 8694 8695 +1
=======================================
+ Hits 8284 8285 +1
Misses 410 410
|
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.
agreed, sessions.tsv
and sessions.json
are valid BIDS files.
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.
@JonathanVHoecke I restarted the CI and apart from the doc-build, everything passes now. No idea why, but circleci somehow blocks execution for your PR.
Could you please elaborate on what your changes enable, why you need that, and what other adjustments may be needed (if any)?
Thanks!
We will also need to add a test case before merging 👍 |
Hi @sappelhoff and @hoechenberger My change was very small by just adding "sessions" into mne_bids/config.py under the allowed suffixes. No other changes were needed. For the test-case, I added a sessions.tsv and sessions.json file in your tiny_bids dataset. I hope this is an answer to your question |
Thanks for the explanations :-) I don't really get the test case --> if Furthermore, could you please take care that the CI checks pass? (Except for the doc build, which --as said before-- somehow does not trigger for you) |
Regarding my proposal to add a test, I was merely thinking of a one-liner where a |
Dear @sappelhoff and @hoechenberger Thank you so much for your feedback. It is the about the 5th time I try to make a contribution to Github (Fieldtrip/BIDSvalidator/mne-bids), so I am still eager to learn about this process. Thanks for your remarks. Concerning the tests that failed, I now adhered to the style standards. For any questions or feedback, please let me know |
btw: I think the reason why circleCI is not being triggered is due to this setting: @JonathanVHoecke can you confirm that you don't have a circleci account? @larsoner why do we have this setting? |
because we pay for our CircleCI service, and if a user fails to do basic doc build debugging locally (instead pushing one commit at a time trying to use the CIs to debug) it will use up I think 20ish minutes for each normal doc build, and ~2 hours if they push with |
@sappelhoff. Thank you to get back to me. I confirm I do not have a CircleCI account. |
Thanks for the answer @drammock. @JonathanVHoecke if you want the circleci check to run for your PR (which would be nice), this means that you'd need to:
As for updating the
--> this would be the workflow as opposed to just adding a file like you did here. I don't really see why the as @hoechenberger says in his comment above, we only need a much smaller test for the change you propose here. One potentially good location would be here: mne-bids/mne_bids/tests/test_path.py Lines 410 to 423 in 9394395
As a hint for you, I found this location by:
Practically:
|
@sappelhoff note that if you ever need circleCI to run without getting user cooperation you can push an empty commit from an authorized account. I think it's possible to trigger the build manually through the CircleCI interface too. |
I just realized that there's a potential problem with the specification of those Edit: |
That's how I read it |
@sappelhoff I believe this one should be ready for review. |
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 :-)
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
thanks @JonathanVHoecke! |
PR Description
Addition of sessions as a suffix when reading BIDS dataset.
Sessions are a suffix since BIDS v1.8
See:
https://bids-specification.readthedocs.io/en/stable/glossary.html#sessions-suffixes
I tested the code to successfully read in sessions.tsv and sessions.json files.
best wishes
Jonathan Vanhoecke
ICN Lab - Charité Universitätsmedizin Berlin