Feature request: remove need for intermediate pl calls when chaining renderers
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- python
調査の方向性
まず pl accessor と render_* メソッドを調べ、特に現在どのように SpatialData を返し、チェーン呼び出しをサポートしているかを確認します。既存の sdata.pl.render_images().pl.render_shapes().pl.show() の例と、提案されているチェーン動作を比較し、pl と pp の操作がどのように連携すべきかを決定します。API 設計が決定され、中間の pl 呼び出しなしで renderer のチェーンが機能すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description of feature
Thanks for the super nice work, @timtreis and @sagar87 ! I think it would be nice if we didn't have to add intermediate calls to pl when chaining renderers. That is, I think it would be nice if instead of this:
sdata.pl.render_images().pl.render_shapes().pl.show()
We could do this:
sdata.pl.render_images().render_shapes().show()
This perhaps could be possible if the render_*() methods returned the plot accessor instead of the SpatialData object. I suppose this means that one couldn't do a pp operation after a pl operation, but maybe that suggests the pl and pp operations should be on the same level of the hierarchy or one should do their preprocessing first, then their plotting. I'm not sure what's best here, but it might be good to experiment with this once all of the p0 functionality is finished.
- 主要言語
- Python
- スター
- 86
- フォーク
- 21
- 平均マージ
- 14時間 50分
- マージ済み PR(30日)
- 3
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
scverse/spatialdata-plot のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
scverse/spatialdata-plot#775 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
scverse/spatialdata-plot#777 ·
-
`pl.show()` leading to `ValueError` due to mismatch between number of axes and number of panels オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
scverse/spatialdata-plot#749 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
scverse/spatialdata-plot#747 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
scverse/spatialdata-plot#677 ·
scverse/spatialdata-plot の issue をすべて見る
似ている issue
-
sponsored
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
Diaoul/subliminal#1382 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
triage/confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
agentscope-ai/agentscope#2775 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100