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 f6e60ed commit 75a56b0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/sdist/amici/sbml_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,16 @@ def get_empty_bolus_value() -> sp.Float:
if len(assigned_to_species) == len(set(assigned_to_species)):
return

# if all assignments are absolute (not referring to other non-constant
# model entities), we are fine.
if all(
update.is_zero or (update + variable).is_Number
for event in self.symbols[SymbolId.EVENT].values()
for variable, update in zip(state_vector, event["state_update"])
if not update.is_zero
):
return

raise SBMLException(
"Events with `useValuesFromTriggerTime=true` are not "
"supported when there are multiple events.\n"
Expand Down

0 comments on commit 75a56b0

Please sign in to comment.