Skip to content

Commit ed44446

Browse files
authored
Merge pull request #205 from PEtab-dev/release_0.2.1
Release 0.2.1
2 parents 3c29fa1 + ca4ab1f commit ed44446

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## 0.2 series
44

5+
### 0.2.1
6+
7+
Fixes:
8+
* Fixed an issue in `Problem.to_files(model_file=...)` (#204)
9+
* Fixed `PySBModel.get_parameter_value`, which incorrectly returned the parameter name instead of its value (#203)
10+
511
### 0.2.0
612

713
Note: petab 0.2.0 requires Python>=3.9

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ and the easiest way to install it is running
2222

2323
pip3 install petab
2424

25-
It will require Python>=3.8 to run. (We are following the
25+
It will require Python>=3.9 to run. (We are following the
2626
[numpy Python support policy](https://numpy.org/neps/nep-0029-deprecation_policy.html)).
2727

2828
Development versions of the PEtab library can be installed using

petab/models/pysb_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_parameter_ids(self) -> Iterable[str]:
8383

8484
def get_parameter_value(self, id_: str) -> float:
8585
try:
86-
return self.model.parameters[id_].name
86+
return self.model.parameters[id_].value
8787
except KeyError as e:
8888
raise ValueError(f"Parameter {id_} does not exist.") from e
8989

petab/problem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def to_files_generic(
411411
if not isinstance(self.model, SbmlModel):
412412
raise NotImplementedError("Saving non-SBML models is "
413413
"currently not supported.")
414-
filenames['sbml_file'] = 'model.xml'
414+
filenames['model_file'] = 'model.xml'
415415

416416
filenames['yaml_file'] = 'problem.yaml'
417417

@@ -542,7 +542,7 @@ def error(name: str) -> ValueError:
542542

543543
if yaml_file:
544544
yaml.create_problem_yaml(
545-
sbml_files=sbml_file,
545+
sbml_files=model_file,
546546
condition_files=condition_file,
547547
measurement_files=measurement_file,
548548
parameter_file=parameter_file,

petab/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""PEtab library version"""
2-
__version__ = '0.2.0'
2+
__version__ = '0.2.1'

0 commit comments

Comments
 (0)