-
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
[ENH] Add warning for future change of the default of force_resample
to True
#4412
base: main
Are you sure you want to change the base?
Conversation
changed force_resample=True to be default for the functions resample_img and resample_to_img.
👋 @ajoshiusc 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.
Thx for opening this !
force_resample
to True
force_resample
to Trueforce_resample
to True
@ajoshiusc I went ahead and added the required changes to implement the deprecation and make the old default value explicit in the tests. |
Can you add your contributor information in the CITATION.CFF See our contributing guidelines For example - given-names: Dimitri Papadopoulos
family-names: Orfanos
website: https://github.com/DimitriPapadopoulos
affiliation: NeuroSpin, C.E.A., Université Paris-Saclay, Gif-sur-Yvette, France
orcid: https://orcid.org/0000-0002-1242-8990 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4412 +/- ##
==========================================
+ Coverage 91.85% 91.99% +0.13%
==========================================
Files 144 145 +1
Lines 16419 16716 +297
Branches 3434 3552 +118
==========================================
+ Hits 15082 15378 +296
+ Misses 792 767 -25
- Partials 545 571 +26
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
I see that all the tests are for the force_resample=False
case.
Would it make sense to have one for the True case?
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.
yeah that makes sense
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.
Please do it.
The force_resample=False which is currently default, the code is not implemented correctly. There are several of #TODO flags in the code for force_resample=False case. Therefore, changed the default option to force_resample=True.