Skip to content

Commit 2ca8d13

Browse files
committed
start time
1 parent 90e48dd commit 2ca8d13

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

petab/v2/converters.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -202,19 +202,6 @@ def _convert_experiment(self, experiment: Experiment):
202202
add_sbml_parameter(model, id_=exp_ind_id, constant=False, value=0)
203203
kept_periods = []
204204
for i_period, period in enumerate(experiment.periods):
205-
# check for non-zero initial times of the first period
206-
if (i_period == int(has_preequilibration)) and period.time != 0:
207-
# TODO: we could address that by offsetting all occurrences of
208-
# the SBML time in the model (except for the newly added
209-
# events triggers). Or we better just leave it to the
210-
# simulator -- we anyways keep the first period in the
211-
# returned Problem.
212-
raise NotImplementedError(
213-
f"The initial simulation time for experiment "
214-
f"`{experiment.id}` is nonzero: `{period.time}`. "
215-
"This cannot be represented in SBML."
216-
)
217-
218205
if period.is_preequilibration:
219206
# pre-equilibration cannot be represented in SBML,
220207
# so we need to keep this period in the Problem.

0 commit comments

Comments
 (0)