Skip to content

Commit 48b8629

Browse files
authored
Allow subsetting simulation conditions in simulate_petab (#2199)
simulate_petab was mainly intended to simulate all conditions at once, but the `simulation_conditions` argument provides also an easy way to simulate only a subset of conditions. However, this currently fails, because the full parameter mapping is used an then wrong conditions are assigned. This is fixed here. Also it saved a minuscule amount of time.
1 parent 1726f43 commit 48b8629

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/sdist/amici/petab_objective.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ def create_parameter_mapping(
516516
observable_df=petab_problem.observable_df,
517517
mapping_df=petab_problem.mapping_df,
518518
model=petab_problem.model,
519+
simulation_conditions=simulation_conditions,
519520
**dict(
520521
default_parameter_mapping_kwargs, **parameter_mapping_kwargs
521522
),

0 commit comments

Comments
 (0)