Submodule plots is in `__all__` but not imported in `__init__.py`
まだ誰も着手していません。
評価
調査の方向性
package init.py から始め、plots に対する all エントリをドキュメントに記載された import 例と比較します。import cmocean に続けて cmocean.plots.plot_gallery() を実行したときの現在の動作を確認します。ドキュメントに記載されたアクセスで AttributeError が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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'
- 主要言語
- Python
- スター
- 269
- フォーク
- 54
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
matplotlib/cmocean のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
matplotlib/cmocean#120 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
matplotlib/cmocean#119 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 52/100
matplotlib/cmocean#118 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
matplotlib/cmocean#116 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
matplotlib/cmocean#115 ·
matplotlib/cmocean の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·