-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
morphology: rename files with "grey" in filename #5386
Conversation
keep functions available from old grey locations, but warn if imported from there
Why doesn't |
I think it does if you look at the first commit only. Subsequently I introduced a new file under the name |
Ok, thanks. Yes, reviewing would be more straightforward with the 'expected' diff but I'll find a way :) Can you please take care of the now conflicts in |
The original files are unchanged aside from the file rename and string replacement of "grey" -> "gray" |
👌 👍
Yes, yes, just like in #5385 (that's why I'm reviewing them in the same wake, it's cognitively efficient). |
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.
Most of my suggestions are not directly related to the scope of this PR, so this is good to go!
PS: I'm disappointed to find out that we won't be 'consistent' anymore with scipy.ndimage, which uses the 'grey' spelling for their morphology functions.
Co-authored-by: Marianne Corvellec <marianne.corvellec@ens-lyon.org>
Looks gray-t to me 😄 Thank you @grlee77! |
Description
closes #2604 (once #5385 is also merged)
This PR just renames a couple of the files in
skimage.morphology
. A file with the old name was also kept, but will raise a warning if a user imports from it. This was done for backward compatibility with existing code that may have imported directly fromskimage.morphology.grey
orskimage.morphology.greyreconstruct
instead of from the intendedskimage.morphology
.Checklist
./doc/examples
(new features only)./benchmarks
, if your changes aren't covered by anexisting benchmark
For reviewers
later.
__init__.py
.doc/release/release_dev.rst
.