matplotlib / matplotlib/cmocean
Submodule plots is in `__all__` but not imported in `__init__.py`
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 269
- フォーク
- 54
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi,
This might be deliberate but it seems that the submodule plots is not imported in the __init__.py but is included in __all__.
I can see there are some optional dependencies for some of the functions but their imports are only inside the concerned functions.
That means that if someone wants to use the plots submodule they would need to explicitly import it, which seems a bit strange when the documentation has this:
import cmocean
cmocean.plots.plot_gallery()
Which currently gives:
AttributeError: module 'cmocean' has no attribute 'plots'
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
package init.py から始め、plots に対する all エントリをドキュメントに記載された import 例と比較します。import cmocean に続けて cmocean.plots.plot_gallery() を実行したときの現在の動作を確認します。ドキュメントに記載されたアクセスで AttributeError が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api
- issue の種類
- バグ
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 48/100