Navigation Menu

Skip to content
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: Don't store age, sex, handedness for empty-room in participants.tsv #935

Merged
merged 1 commit into from Dec 30, 2021

Conversation

hoechenberger
Copy link
Member

I came across some datasets where, for whatever reason, a participant age etc. were included in raw.info['subject_info'] for empty-room recordings. This PR makes it so that such info isn't added to participants.tsv anymore.

Merge checklist

Maintainer, please confirm the following before merging:

  • All comments resolved
  • This is not your own PR
  • All CIs are happy
  • PR title starts with [MRG]
  • whats_new.rst is updated
  • PR description includes phrase "closes <#issue-number>"

@@ -222,7 +225,6 @@ def test_write_participants(_bids_validate, tmp_path):

# if overwrite is False, then nothing should change from the above
with pytest.raises(FileExistsError, match='already exists'):
raw.info['subject_info'] = None
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this line was some leftover cruft from debugging

@hoechenberger hoechenberger marked this pull request as ready for review December 29, 2021 18:47
@hoechenberger hoechenberger changed the title Don't store age, sex, handedness for empty-room in participants.tsv MRG: Don't store age, sex, handedness for empty-room in participants.tsv Dec 29, 2021
@codecov
Copy link

codecov bot commented Dec 29, 2021

Codecov Report

Merging #935 (c482b78) into main (9463f19) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #935   +/-   ##
=======================================
  Coverage   94.78%   94.78%           
=======================================
  Files          23       23           
  Lines        3490     3490           
=======================================
  Hits         3308     3308           
  Misses        182      182           
Impacted Files Coverage Δ
mne_bids/write.py 96.22% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9463f19...c482b78. Read the comment docs.

@sappelhoff sappelhoff merged commit a497390 into mne-tools:main Dec 30, 2021
@sappelhoff
Copy link
Member

Thanks @hoechenberger 🚀

@hoechenberger hoechenberger deleted the emptyroom-participant branch December 30, 2021 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants