Improve error handling in Problem.from_yaml - format_version
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 45/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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'
- Langage dominant
- Python
- Étoiles
- 18
- Forks
- 9
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de PEtab-dev/libpetab-python
-
Improve model abstractions Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
PEtab-dev/libpetab-python#518 ·
-
validation
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
PEtab-dev/libpetab-python#494 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
PEtab-dev/libpetab-python#466 ·
-
enhancement
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
PEtab-dev/libpetab-python#453 ·
-
documentation
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
PEtab-dev/libpetab-python#439 ·
Toutes les issues de PEtab-dev/libpetab-python
Issues similaires
-
link-check link-check:sphinx-theme
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
OpenHands/extensions#626 · 1 commentaire ·
-
Change observation tooltip text Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
CSCfi/sd-search-api#39 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100