-
Notifications
You must be signed in to change notification settings - Fork 45
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
Generate participants.tsv if it doesn't exist or update it if subject is missing in the file #244
Generate participants.tsv if it doesn't exist or update it if subject is missing in the file #244
Conversation
Codecov Report
@@ Coverage Diff @@
## master #244 +/- ##
==========================================
- Coverage 94.41% 93.56% -0.86%
==========================================
Files 8 8
Lines 681 730 +49
==========================================
+ Hits 643 683 +40
- Misses 38 47 +9
|
@smoia @vinferrer @tsalo what should we do when
Of course, this is also valid for |
For the participants.tsv, I think that updating an existing file will be the norm after converting the first participant, so I vote 2, except when the participant already exists in the file. |
Totally agree with @tsalo on this. I think we can follow this steps for all the files. |
Tests pass but we're losing coverage. I'll add an extra call to phys2bids in the integration test to cover part of the new function. Given that this PR is critical for OHBM, I think we can add the unit tests later. What do you think @smoia @vinferrer ? |
Adding the extra call to phys2bids makes the test much slower... How about we add the |
Sure, Do you wanna open an issue so we don't forget about it? |
@vinferrer I think I've covered all your comments, let me know! |
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.
Good to go then
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.
Looks good!
A couple of changes here and there, plus a bit of discussion.
I agree on putting aside the unit test for now - please open an issue about them though!
One thing: this could actually call for the use of pandas. Do we want to add it as a dependency?
@smoia I think I've covered the most important comments. Please let me know. |
There's still a bug on that previous commit. Fix coming. |
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!
Partly closes #242 and #185
Proposed Changes