Skip to content
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

NumPy: Deprecated SciPy API #263

Open
hroncok opened this issue Nov 1, 2017 · 3 comments
Open

NumPy: Deprecated SciPy API #263

hroncok opened this issue Nov 1, 2017 · 3 comments

Comments

@hroncok
Copy link
Member

hroncok commented Nov 1, 2017

>>> import scipy.ndimage
>>> img = scipy.ndimage.imread('static/python.jpg', mode='RGB')
>>> img
/home/churchyard/Dokumenty/pyvec/naucse.python.cz/__env__/lib64/python3.5/site-packages/ipykernel_launcher.py:2: DeprecationWarning: `imread` is deprecated!
`imread` is deprecated in SciPy 1.0.0.
Use ``matplotlib.pyplot.imread`` instead.

warn

Changing to matplotlib.pyplot.imread is not 1:1, it doesn't have mode.

@encukou
Copy link
Member

encukou commented Nov 1, 2017

Ah, yeah, that's a new development.
We can use pillow directly, or use the matplotlib function and assume a jpeg is always RGB.
I think using pillow would actually work better here, as a pointer to another useful library.

@hroncok
Copy link
Member Author

hroncok commented Nov 1, 2017

The docs say use imageio.imread.

@MartinThoma
Copy link

MartinThoma commented Jul 1, 2020

Link to the scipy 1.0 docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants