PEtab-dev / PEtab-dev/libpetab-python
Improve error handling in Problem.from_yaml - format_version
オープン
まだ誰も着手していません。
validation
- 主要言語
- Python
- スター
- 18
- フォーク
- 9
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Missing format_version in the yaml file should provide a proper error message instead of just KeyError:
--> 250 if yaml_config[FORMAT_VERSION] not in {"1", 1, "1.0.0", "2.0.0"}:
251 raise ValueError("Provided PEtab files are of unsupported version "
252 f"{yaml_config[FORMAT_VERSION]}. Expected "
253 f"{format_version.__format_version__}.")
254 if yaml_config[FORMAT_VERSION] == "2.0.0":
KeyError: 'format_version'
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Start at the Problem.from_yaml entry point and reproduce the failure with a YAML file missing format_version. Trace the existing version validation and error handling, then make the missing field produce a proper error instead of KeyError; done means the reported case has a clear error and the relevant checks pass.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100