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] Adds Sources for scans.tsv files #890

Merged
merged 28 commits into from
Nov 19, 2021
Merged

Conversation

adam2392
Copy link
Member

@adam2392 adam2392 commented Oct 21, 2021

PR Description

Fixes: #887

Waiting on: bids-standard/bids-specification#906

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>"

@adam2392
Copy link
Member Author

@sappelhoff does the bids-validator prevent a Sources key value in the sidecar JSONs?

@sappelhoff
Copy link
Member

@sappelhoff does the bids-validator prevent a Sources key value in the sidecar JSONs?

yes --> https://github.com/bids-standard/bids-validator/blob/682d44048d10b2d027125cadddc4d378060b0eea/bids-validator/validators/json/schemas/eeg.json#L44

I would recommend with PRs until the BIDS side is done, else you might end up investing too much effort

@adam2392
Copy link
Member Author

@hoechenberger hoechenberger marked this pull request as draft November 10, 2021 16:55
@hoechenberger hoechenberger added this to the 0.10 milestone Nov 10, 2021
@adam2392 adam2392 marked this pull request as ready for review November 12, 2021 02:20
@adam2392 adam2392 changed the title [WIP] Adds Sources for sidecar JSON files [WIP] Adds Sources for scans.tsv files Nov 12, 2021
@hoechenberger hoechenberger marked this pull request as draft November 14, 2021 19:18
@adam2392 adam2392 marked this pull request as ready for review November 15, 2021 18:45
@adam2392 adam2392 changed the title [WIP] Adds Sources for scans.tsv files [MRG] Adds Sources for scans.tsv files Nov 17, 2021
@adam2392
Copy link
Member Author

Now CIs should fully pass with the latest addition to only write lower-case EDF

@codecov
Copy link

codecov bot commented Nov 17, 2021

Codecov Report

Merging #890 (9231e6b) into main (72ce6f1) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #890      +/-   ##
==========================================
+ Coverage   94.73%   94.78%   +0.04%     
==========================================
  Files          23       23              
  Lines        3460     3487      +27     
==========================================
+ Hits         3278     3305      +27     
  Misses        182      182              
Impacted Files Coverage Δ
mne_bids/copyfiles.py 98.07% <100.00%> (ø)
mne_bids/utils.py 96.41% <100.00%> (+0.01%) ⬆️
mne_bids/write.py 96.22% <100.00%> (+0.09%) ⬆️
mne_bids/path.py 97.50% <0.00%> (+0.01%) ⬆️

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 72ce6f1...9231e6b. Read the comment docs.

@hoechenberger
Copy link
Member

Is there a specific reason why the column name is plural ("sources") and not singular?

@adam2392
Copy link
Member Author

Is there a specific reason why the column name is plural ("sources") and not singular?

Good point. I was keeping in line with Sources BIDS nomenclature, but that's a different meaning technically. I'll adjust to singular.

@hoechenberger
Copy link
Member

Otherwise LGTM!

Co-authored-by: Richard Höchenberger <[email protected]>
@adam2392
Copy link
Member Author

@sappelhoff lmk if this good to merge?

Copy link
Member

@hoechenberger hoechenberger left a comment

Choose a reason for hiding this comment

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

Two tiny nitpicks

@hoechenberger hoechenberger merged commit 76d99c3 into mne-tools:main Nov 19, 2021
@hoechenberger
Copy link
Member

Thank you, @adam2392!!

@sappelhoff
Copy link
Member

Thanks adam :)

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.

[ENH] Include RawSources in sidecar JSON files
3 participants