Repository navigation
Harmonize all ndimage usage across the library - #1550
Conversation
Only two forms remain in use: - `from scipy import ndimage as ndi` - `from scipy.ndimage import function`
|
That looks like no fun at all.... |
|
@tacaswell what? I love doing repetitive but always slightly different regex searches and substitutions across a whole library... =P |
|
For the record, I have nothing against avoiding an alias entirely in favor of |
|
Could you also update the import conventions ? |
... in CONTRIBUTING.txt for future contributions.
|
@JDWarner I do have something against avoiding aliases. =) @vighneshbirodkar done, thanks for the catch! |
There was a problem hiding this comment.
Let's break these into separate lines for ndi and spatial.
|
@jni I really thought this was more standardized! I have only the one comment. |
This improves the readability of the import code and is in line with PEP8 recommendations.
|
@JDWarner you and I both! I think this is part of the advantage of scikit-image's modularity. =) Fixed! |
|
Thanks, @jni! |
STY: Harmonize scipy.ndimage usage across the library
Only two forms remain in use:
from scipy import ndimage as ndifrom scipy.ndimage import function