-
Notifications
You must be signed in to change notification settings - Fork 576
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] Raise error if unknown kwargs are given to first_level_from_bids
#4414
[FIX] Raise error if unknown kwargs are given to first_level_from_bids
#4414
Conversation
👋 @michellewang 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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4414 +/- ##
==========================================
+ Coverage 91.85% 91.95% +0.09%
==========================================
Files 144 143 -1
Lines 16419 16646 +227
Branches 3434 3531 +97
==========================================
+ Hits 15082 15307 +225
+ Misses 792 769 -23
- Partials 545 570 +25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thanks for the contribution, @michellewang! |
@man-shu it is now! |
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 otherwise. Thanks!
Co-authored-by: Himanshu Aggarwal <himanshuaggarwal1997@gmail.com>
Co-authored-by: Himanshu Aggarwal <himanshuaggarwal1997@gmail.com>
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.
Thx.
I'm not sure I undertsand the behavior of the function. Please correct me if I'm wrong.
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, thx.
glm.first_level.first_level_from_bids
#4357Changes proposed in this pull request:
_check_kwargs_load_confounds
return unusedremaining_kwargs
in addition tokwargs_load_confounds
first_level_from_bids
if there are any remaining kwargs after the confound ones are extracted