Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jun 12, 2024
1 parent 5083759 commit 18833d1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/sdist/amici/petab/sbml_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ def import_model_sbml(

initial_states = get_states_in_condition_table(petab_problem)
requires_preequilibration = (
petab.PREEQUILIBRATION_CONDITION_ID in petab_problem.measurement_df
petab_problem.measurement_df is not None
and petab.PREEQUILIBRATION_CONDITION_ID in petab_problem.measurement_df
and petab_problem.measurement_df[petab.PREEQUILIBRATION_CONDITION_ID]
.notnull()
.any()
Expand Down Expand Up @@ -313,7 +314,9 @@ def import_model_sbml(
"Adding preequilibration indicator "
f"constant {PREEQ_INDICATOR_ID}"
)
logger.debug(f"Adding initial assignments for {initial_states.keys()}")
logger.debug(
f"Adding initial assignments for {list(initial_states.keys())}"
)
for assignee_id in initial_states:
init_par_id_preeq = f"initial_{assignee_id}_preeq"
init_par_id_sim = f"initial_{assignee_id}_sim"
Expand Down

0 comments on commit 18833d1

Please sign in to comment.