@@ -2648,7 +2648,7 @@ def get_implicit_roots(self) -> list[sp.Expr]:
26482648 for e in self ._events
26492649 if not e .has_explicit_trigger_times ()
26502650 ]
2651-
2651+
26522652 def has_algebraic_states (self ) -> bool :
26532653 """
26542654 Checks whether the model has algebraic states
@@ -2666,7 +2666,7 @@ def has_event_assignments(self) -> bool:
26662666 boolean indicating if event assignments are present
26672667 """
26682668 return any (event .updates_state for event in self ._events )
2669-
2669+
26702670 def has_priority_events (self ) -> bool :
26712671 """
26722672 Checks whether the model has events with priorities defined
@@ -2675,7 +2675,7 @@ def has_priority_events(self) -> bool:
26752675 boolean indicating if priority events are present
26762676 """
26772677 return any (event .get_priority () is not None for event in self ._events )
2678-
2678+
26792679 def has_implicit_event_assignments (self ) -> bool :
26802680 """
26812681 Checks whether the model has event assignments with implicit triggers
@@ -2686,9 +2686,13 @@ def has_implicit_event_assignments(self) -> bool:
26862686 """
26872687 fixed_symbols = set ([k ._symbol for k in self ._fixed_parameters ])
26882688 allowed_symbols = fixed_symbols | {amici_time_symbol }
2689- # TODO: update to use has_explicit_trigger_times once
2689+ # TODO: update to use has_explicit_trigger_times once
26902690 # https://github.com/AMICI-dev/AMICI/issues/3126 is resolved
2691- return any (event .updates_state and event ._has_implicit_triggers (allowed_symbols ) for event in self ._events )
2691+ return any (
2692+ event .updates_state
2693+ and event ._has_implicit_triggers (allowed_symbols )
2694+ for event in self ._events
2695+ )
26922696
26932697 def toposort_expressions (
26942698 self , reorder : bool = True
0 commit comments