Skip to content

Commit b322ad8

Browse files
dweindldilpath
andauthored
Fix Problem.to_files(model_file=...) (#204)
* Fix Problem.to_files(model_file=...) model_file parameter was not properly handled, resulting in missing model files in the created yaml file. * typo --------- Co-authored-by: dilpath <dilan.private+github@outlook.com>
1 parent 7e0b3f8 commit b322ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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,

0 commit comments

Comments
 (0)