File tree Expand file tree Collapse file tree 5 files changed +11
-5
lines changed Expand file tree Collapse file tree 5 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## 0.2 series
4
4
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
+
5
11
### 0.2.0
6
12
7
13
Note: petab 0.2.0 requires Python>=3.9
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ and the easiest way to install it is running
22
22
23
23
pip3 install petab
24
24
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
26
26
[ numpy Python support policy] ( https://numpy.org/neps/nep-0029-deprecation_policy.html ) ).
27
27
28
28
Development versions of the PEtab library can be installed using
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def get_parameter_ids(self) -> Iterable[str]:
83
83
84
84
def get_parameter_value (self , id_ : str ) -> float :
85
85
try :
86
- return self .model .parameters [id_ ].name
86
+ return self .model .parameters [id_ ].value
87
87
except KeyError as e :
88
88
raise ValueError (f"Parameter { id_ } does not exist." ) from e
89
89
Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ def to_files_generic(
411
411
if not isinstance (self .model , SbmlModel ):
412
412
raise NotImplementedError ("Saving non-SBML models is "
413
413
"currently not supported." )
414
- filenames ['sbml_file ' ] = 'model.xml'
414
+ filenames ['model_file ' ] = 'model.xml'
415
415
416
416
filenames ['yaml_file' ] = 'problem.yaml'
417
417
@@ -542,7 +542,7 @@ def error(name: str) -> ValueError:
542
542
543
543
if yaml_file :
544
544
yaml .create_problem_yaml (
545
- sbml_files = sbml_file ,
545
+ sbml_files = model_file ,
546
546
condition_files = condition_file ,
547
547
measurement_files = measurement_file ,
548
548
parameter_file = parameter_file ,
Original file line number Diff line number Diff line change 1
1
"""PEtab library version"""
2
- __version__ = '0.2.0 '
2
+ __version__ = '0.2.1 '
You can’t perform that action at this time.
0 commit comments