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 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
713Note: 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
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
2828Development 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]:
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
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 11"""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