[FEATURE] - Enforce descending y-coords

オープン
#1,671 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
data

調査の方向性

まず、出力次元の順序を強制する既存のデコレータと、mf6 モジュールですでに使用されている入力検証を確認します。グリッドユーティリティでデコレータを使って y 座標が降順になることを強制するか、昇順の座標を拒否するかを決定し、グリッドの入力と出力、および期待される動作を網羅するテストを定義します。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Is your feature request related to a problem? Please describe.
We quietly assume y-coords of structred grids are in descending order, but we often do not check this. Especially not for utility functions. Given that xarray has a tendency to flip coordinates into ascending order, y-coords often end up ascending. This can result into trouble such as in #825.

One way to deal with this is to create a decorator which forces descending y-coordinates for grid input and output of a function/method, similarly how we have a decorator to enforce the dim order of the output of a function/method.
An alternative would be input validation and presenting an error if y is not descending. This is already the case for the mf6 module, but I think expanding that to utility functions might be too strict and will frustrate user experience.

主要言語
Python
スター
41
フォーク
12
平均マージ
2日 8時間
マージ済み PR(30日)
13

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Deltares/imod-python のほかの issue

Deltares/imod-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。