pyvec / pyvec/naucse.python.cz
NumPy: Deprecated SciPy API
Open
Nobody has claimed this yet.
bug
content
MI-PYT
- Dominant language
- No language data
- Stars
- 335
- Forks
- 119
- Avg merge
- 3h 6m
- Merged PRs (30d)
- 1
Description
>>> 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.

Changing to matplotlib.pyplot.imread is not 1:1, it doesn't have mode.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the learning materials for the scipy.ndimage.imread call that uses static/python.jpg, then read the surrounding example and its expected RGB behavior. Check the available matplotlib.pyplot.imread usage and determine how the missing mode requirement should be handled; done means the example no longer uses the deprecated API and runs without the warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matplotlib, python
- Domain
- content, documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100