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
[MAINT] Improve error for nifti masker when fit is called without imgs or mask_img #4151
Conversation
👋 @ymzayek 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. |
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.
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.
Long live meaningful error messages
Just realized that another test is failing. Can fix as soon as I am not a tablet. |
Ok I see, so the failure has to due with order of errors basically. If we give an incorrect value to masker_strategy this will fail when |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4151 +/- ##
=======================================
Coverage 91.91% 91.92%
=======================================
Files 145 145
Lines 16335 16337 +2
Branches 3406 3407 +1
=======================================
+ Hits 15015 15017 +2
Misses 777 777
Partials 543 543
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thanks @ymzayek |
Changes proposed in this pull request: