Skip to content

Commit

Permalink
pass petab validation flag to amici
Browse files Browse the repository at this point in the history
  • Loading branch information
dilpath committed Oct 25, 2023
1 parent 48019e2 commit a6889d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pypesto/petab/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def __init__(

self.validate_inner_options()

if validate_petab:
self.validate_petab = validate_petab
if self.validate_petab:
if petab.lint_problem(petab_problem):
raise ValueError("Invalid PEtab problem.")
if self._hierarchical and validate_petab_hierarchical:
Expand Down Expand Up @@ -280,7 +281,7 @@ def create_model(
logger.info(
f"Compiling amici model to folder " f"{self.output_folder}."
)
self.compile_model(**kwargs)
self.compile_model(validate=self.validate_petab, **kwargs)
else:
logger.debug(
f"Using existing amici model in folder "
Expand Down

0 comments on commit a6889d7

Please sign in to comment.