2020from .models ._sbml_utils import add_sbml_parameter , check
2121from .models .sbml_model import SbmlModel
2222
23- __all__ = ["ExperimentsToEventsConverter " ]
23+ __all__ = ["ExperimentsToSbmlConverter " ]
2424
2525
26- class ExperimentsToEventsConverter :
27- """Convert PEtab experiments to SBML events .
26+ class ExperimentsToSbmlConverter :
27+ """Convert PEtab experiments to SBML.
2828
2929 For an SBML-model-based PEtab problem, this class converts the PEtab
30- experiments to events as far as possible.
30+ experiments to initial assignments and events as far as possible.
3131
3232 If the model already contains events, PEtab events are added with a higher
3333 priority than the existing events to guarantee that PEtab condition changes
@@ -38,8 +38,8 @@ class ExperimentsToEventsConverter:
3838 The PEtab problem must not contain any identifiers starting with
3939 ``_petab``.
4040
41- All periods and condition changes that are represented by events
42- will be removed from the condition table.
41+ All periods and condition changes that are represented by initial
42+ assignments or events will be removed from the condition table.
4343 Each experiment will have at most one period with a start time of ``-inf``
4444 and one period with a finite start time. The associated changes with
4545 these periods are only the pre-equilibration indicator
@@ -454,7 +454,7 @@ def _create_event_assignments_for_period(
454454 :param changes: The PEtab condition changes that are to be applied
455455 at the start of the period.
456456 """
457- _add_assignment = ExperimentsToEventsConverter ._add_assignment
457+ _add_assignment = ExperimentsToSbmlConverter ._add_assignment
458458 sbml_model = event .getModel ()
459459 # collect IDs of compartments that are changed in this period
460460 changed_compartments = {
0 commit comments