pyvec / pyvec/naucse.python.cz

NumPy: Deprecated SciPy API

未关闭
#263 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug content MI-PYT
主要语言
没有语言数据
星标
335
派生
119
平均合并
3 小时 6 分钟
30 天内合并 PR
1

描述

>>> 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.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在学习材料中搜索使用 static/python.jpg 的 scipy.ndimage.imread 调用,然后阅读周围的示例及其预期的 RGB 行为。检查可用的 matplotlib.pyplot.imread 用法,并确定应如何处理缺失的 mode 要求;完成的标准是示例不再使用已弃用的 API,并且运行时不会出现警告。

由索引模型根据 Issue 内容生成。

评估

技术栈
matplotlib, python
领域
content, documentation
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。