pyvec / pyvec/naucse.python.cz

NumPy: Deprecated SciPy API

Open
#263 3 comments 0 reactions 0 assignees View on GitHub

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.

warn

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.