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
[FIX] Make load_confounds' confounds file selection more generic #3794
[FIX] Make load_confounds' confounds file selection more generic #3794
Conversation
👋 @tsalo Thanks for creating a PR! Until this PR is ready for review, you can include the [WIP] tag in its title, or leave it as a github draft. Please make sure it is compliant with our contributing guidelines. In particular, be sure it checks the boxes listed below.
For new features:
For bug fixes:
We will review it as quick as possible, feel free to ping us with questions if needed. |
For the test I think I had modified the functions to generate dummy datasets to accommodate more bids derivatives entities. Maybe this can help. |
Codecov Report
@@ Coverage Diff @@
## main #3794 +/- ##
==========================================
+ Coverage 91.52% 91.54% +0.02%
==========================================
Files 133 133
Lines 15561 15598 +37
Branches 3229 3245 +16
==========================================
+ Hits 14242 14279 +37
Misses 772 772
Partials 547 547
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 14 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@Remi-Gau Thanks! I think I used the modified functions correctly. |
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.
Main thing would be to extract into a function the part that generates the list of candidates 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.
LGTM just one minor thing to refactor the test
Co-authored-by: Hao-Ting Wang <haotingwang@pm.me>
…/tsalo/nilearn into make-load-confounds-more-general
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 @tsalo |
Closes #3792.
Changes proposed in this pull request:
test_get_file_name[True-_desc-confounds_regressors-part]
andtest_get_file_name[False-_desc-confounds_timeseries-part]
.