From f78940b164a8a8070d0175e20602002afd8527cc Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Wed, 15 Nov 2023 20:05:08 +0100 Subject: [PATCH] Allow subsetting simulation conditions in simulate_petab 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. --- python/sdist/amici/petab_objective.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/sdist/amici/petab_objective.py b/python/sdist/amici/petab_objective.py index 87409ee446..e3111d3b68 100644 --- a/python/sdist/amici/petab_objective.py +++ b/python/sdist/amici/petab_objective.py @@ -516,6 +516,7 @@ def create_parameter_mapping( observable_df=petab_problem.observable_df, mapping_df=petab_problem.mapping_df, model=petab_problem.model, + simulation_conditions=simulation_conditions, **dict( default_parameter_mapping_kwargs, **parameter_mapping_kwargs ),