From 5d72df0c610e209f3a5c9917858ba3e24a386195 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Tue, 7 May 2024 13:22:45 +0200 Subject: [PATCH] .. --- python/sdist/amici/sbml_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/sdist/amici/sbml_import.py b/python/sdist/amici/sbml_import.py index ccb4d7b5b8..3faf4e09c4 100644 --- a/python/sdist/amici/sbml_import.py +++ b/python/sdist/amici/sbml_import.py @@ -1689,7 +1689,7 @@ def get_empty_bolus_value() -> sp.Float: # Update the concentration of species with concentration units # in compartments that were affected by the event assignments. - for compartment_sym, formula in compartment_event_assignments: + for compartment_sym, new_size in compartment_event_assignments: for species_sym in concentration_species_by_compartment[ compartment_sym ]: @@ -1701,7 +1701,7 @@ def get_empty_bolus_value() -> sp.Float: ): # New species value is old amount / new volume. bolus[state_vector.index(species_sym)] = ( - species_sym * compartment_sym / formula + species_sym * compartment_sym / new_size ) # Subtract the current species value from each species with an