recreating indexes after conversion
まだ誰も着手していません。
評価
調査の方向性
Start with the discussion from PR 163 linked in the issue and determine the intended behavior for indexes during unit conversion. The work is done when the project has a decided, implemented approach that accounts for underlying index types and preserves or drops indexes as intended.
索引モデルが issue の本文から書いたものです。
説明
@benbovy, do you have any idea about how to best do this? from_variables is a class method, so it won't preserve any options that were already on the index, even if we don't pass an empty dict. This shouldn't block this PR, though.
Originally posted by @keewis in https://github.com/xarray-contrib/pint-xarray/pull/163#discussion_r1669996550
I'm afraid there is no easy way of converting units (i.e, new coordinate values + re-create the underlying index + wrap it as a new
PintIndex) that would be completely agnostic of the underlying index type.
Actually I would rather drop the index and let the user re-create it manually. This is also better behavior for custom indexes that may be expensive to build (e.g., a KDTree).
For convenience we might also choose to auto-convert indexes for Xarray built-in index types only (and pass the options in a hard-coded way, if any... currently
PandasIndexandPandasMultiIndexdo not expose any option).
Originally posted by @benbovy in https://github.com/xarray-contrib/pint-xarray/pull/163#discussion_r1670068233
- 主要言語
- Python
- スター
- 119
- フォーク
- 16
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
xarray-contrib/pint-xarray のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
xarray-contrib/pint-xarray#362 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
xarray-contrib/pint-xarray#361 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
xarray-contrib/pint-xarray#303 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
xarray-contrib/pint-xarray#271 · コメント 7 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
xarray-contrib/pint-xarray#268 ·
xarray-contrib/pint-xarray の issue をすべて見る
似ている issue
-
area/i18n comp/desktop P3 type/feature
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
NousResearch/hermes-agent#134377 ·
メンテナーはふだん 1 日以内に返信
-
good first issue needs-triage priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
melodic-software/claude-code-plugins#6499 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ssciwr/clang-format-wheel#167 ·
-
conda skeleton cran has SSL_NO_VERIFY check inverted and TLS verification off by default対応中かも @matthewfeickert が今日担当しました。 オープンtype::bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
conda/conda-build#6202 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信