Skip to content

Commit 68a9d5f

Browse files
authored
Release v0.3.3
2 parents c9443a1 + b0331bc commit 68a9d5f

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.14183390.svg)](https://doi.org/10.5281/zenodo.14183390)
55

66

7-
The repository for the development of the extension to PEtab for model
8-
selection, including the additional file formats and Python 3 package.
7+
The PEtab extension for model selection, including additional file formats and library.
98

109
## Install
1110

12-
The Python 3 package provides both the Python 3 and command-line (CLI)
11+
The Python 3 library provides both the Python 3 and command-line (CLI)
1312
interfaces, and can be installed from PyPI, with `pip3 install petab-select`.
1413

1514
## Documentation
@@ -19,12 +18,8 @@ Further documentation is available at
1918

2019
## Examples
2120

22-
There are example Jupyter notebooks for usage of PEtab Select with
23-
24-
- the command-line interface, and
25-
- the Python 3 interface,
26-
27-
in the `doc/examples` directory.
21+
There are example Jupyter notebooks covering the Python API, CLI, and visualization in the "doc/examples" directory.
22+
The notebooks can be viewed at [https://petab-select.readthedocs.io/en/stable/examples.html](https://petab-select.readthedocs.io/en/stable/examples.html).
2823

2924
## Supported features
3025

petab_select/model.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,19 @@ class Model(ModelBase):
410410
:attr:`model_subspace_petab_yaml`.
411411
"""
412412

413+
@model_validator(mode="before")
414+
@classmethod
415+
def _deprecated_petab_yaml(cls, data: Any) -> Any:
416+
if isinstance(data, dict) and "petab_yaml" in data:
417+
data[MODEL_SUBSPACE_PETAB_YAML] = data.pop("petab_yaml")
418+
warnings.warn(
419+
"Change the `petab_yaml` field of your model data "
420+
"to `model_subspace_petab_yaml.",
421+
DeprecationWarning,
422+
stacklevel=2,
423+
)
424+
return data
425+
413426
@model_validator(mode="after")
414427
def _fix_petab_problem(self: Model) -> Model:
415428
"""Fix a missing PEtab problem by loading it from disk."""

0 commit comments

Comments
 (0)