Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed May 7, 2024
1 parent eddc25c commit 5d72df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/sdist/amici/sbml_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]:
Expand All @@ -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
Expand Down

0 comments on commit 5d72df0

Please sign in to comment.