Repository navigation
Default edge mode change for resize and rescale - #2484
Conversation
|
Thanks! 2 quicks comments:
I let @jni decide if we include that in 0.13 or not. |
|
@sciunto: The bad reference was to scipy/scipy#4922 where there was some related discussion. (it was a mistake to list it as an issue to be closed here) |
Codecov Report@@ Coverage Diff @@
## master #2484 +/- ##
=========================================
+ Coverage 90.69% 90.7% +<.01%
=========================================
Files 304 304
Lines 21542 21557 +15
Branches 1860 1861 +1
=========================================
+ Hits 19538 19553 +15
Misses 1661 1661
Partials 343 343
Continue to review full report at Codecov.
|
|
Hi @grlee77, and thanks for this! You missed a bit in the deprecation procedure:
@sciunto my official position on merging PRs just before the release is: if they are ready, and "minor", merge them. No sense holding them up for a release. If they are somehow controversial or likely to cause breakage/a delay in release, then we can hold them up — much better to have a broken master after the release than just before it! So, @grlee77, if you can address the above comments, it'll go in forthwith! =) |
|
okay. Hopefully all is in order now (That is a pretty nice example |
use mode=None as default to avoid a warning if the user specifies mode='constant'
also update docstring examples to avoid warnings
b836e59 to
f9f2a22
Compare
Description
Perhaps a bit late to go in for 0.13, but this PR warns about a pending change in the default edge mode from 'constant' to 'reflect' for both
skimage.transform.resizeandskimage.transform.reflect. This change was discussed in #1514 where the consensus was that this was preferable to the current default.The only test that relies on the default edge mode being 'constant' to pass was
test_resize3d_bilinear, so I have setmode='constant'explicitly in that case. The remaining tests useexpected_warningsto verify that the warning is raised.Examples and doctests were updated to explicitly use mode='reflect' to avoid warnings there.
not sure if 0.15 is the appropriate version to cite in the warning message
References
closes #1514