Maybe change `testing.fast_array_utils.Flags` design
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
リンクされた pull request の議論から始め、現在の testing.fast_array_utils.Flags の設計、特に Flags.Any と Flags(0) の扱いを確認してください。Issue に記載されている 3 つの代替案を比較し、意図されたセマンティクスをメンテナーと明確にしてください。すべての ArrayTypes について、合意されたフラグ設計と対応する動作が決まれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Continued from https://github.com/scverse/fast-array-utils/pull/30#discussion_r1967609696 (cc @ilan-gold)
Currently we have Flags.Any, which is set for all ArrayTypes, in order to make sure that for each ArrayType “at”,
at.flags & ~Flags(0)is truthy, andnot (at.flags & Flags(0))is true.
This isn’t trivially the case, since each flag represents an attribute, and its absence the inverse attribute, so there is always one group that has no flags set. With the current set of flags (sparse, gpu, dask, disk), this group contains numpy.ndarray)
Alternatives:
- don’t use
Flags(0)as default forskip, butNoneinstead (unintuitive, one would expectskip=Flags(0)to skip nothing) - use a flag that is the inverse of another, e.g.
Flags.Dense(there is no longer one obvious way to do things, e.g. shall we skip sparse or select dense?) - switch the flags to
NoDaskandNoDisk, so thatFlags(0)represents a combination that can never exist (might be elegant if there were were words to express these concepts without negation)
- 主要言語
- Python
- スター
- 15
- フォーク
- 5
- 平均マージ
- 10時間 33分
- マージ済み PR(30日)
- 9
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
scverse/fast-array-utils のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 74/100
scverse/fast-array-utils#165 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
scverse/fast-array-utils#215 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
scverse/fast-array-utils#213 · コメント 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
scverse/fast-array-utils#179 · コメント 23 件 ·
-
type: numpy/scipy
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
scverse/fast-array-utils#128 ·
scverse/fast-array-utils の issue をすべて見る
似ている issue
-
agent-ready documentation needs-triage
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
instance instance add
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
searxng/searx-instances#939 · コメント 1 件 ·
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100