@@ -40,9 +40,11 @@ class ExperimentsToEventsConverter:
4040 #: ID of the parameter that indicates whether the model is in
4141 # the pre-equilibration phase (1) or not (0).
4242 PREEQ_INDICATOR = "_petab_preequilibration_indicator"
43+
4344 #: The condition ID of the condition that sets the
4445 #: pre-equilibration indicator to 1.
4546 CONDITION_ID_PREEQ_ON = "_petab_preequilibration_on"
47+
4648 #: The condition ID of the condition that sets the
4749 #: pre-equilibration indicator to 0.
4850 CONDITION_ID_PREEQ_OFF = "_petab_preequilibration_off"
@@ -69,7 +71,7 @@ def __init__(self, problem: Problem, default_priority: float = None):
6971 self ._original_problem = problem
7072 self ._new_problem = deepcopy (self ._original_problem )
7173
72- self ._model = self ._new_problem .model .sbml_model
74+ self ._model : libsbml . Model = self ._new_problem .model .sbml_model
7375 self ._preeq_indicator = self .PREEQ_INDICATOR
7476
7577 # The maximum event priority that was found in the unprocessed model.
@@ -85,7 +87,7 @@ def _get_experiment_indicator_condition_id(
8587 """Get the condition ID for the experiment indicator parameter."""
8688 return f"_petab_experiment_condition_{ experiment_id } "
8789
88- def _preprocess (self ):
90+ def _preprocess (self ) -> None :
8991 """Check whether we can handle the given problem and store some model
9092 information."""
9193 model = self ._model
@@ -184,7 +186,7 @@ def convert(self) -> Problem:
184186
185187 return self ._new_problem
186188
187- def _convert_experiment (self , experiment : Experiment ):
189+ def _convert_experiment (self , experiment : Experiment ) -> None :
188190 """Convert a single experiment to SBML events."""
189191 model = self ._model
190192 experiment .sort_periods ()
@@ -323,7 +325,9 @@ def _create_event_assignments_for_period(
323325 )
324326
325327 @staticmethod
326- def _change_to_event_assignment (change : Change , event : libsbml .Event ):
328+ def _change_to_event_assignment (
329+ change : Change , event : libsbml .Event
330+ ) -> None :
327331 """Convert a PEtab ``Change`` to an SBML event assignment."""
328332 sbml_model = event .getModel ()
329333
0 commit comments