File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,9 @@ def _add_presimulation_indicator(
260
260
the SBML model."""
261
261
par_id = self ._presim_indicator
262
262
if self ._model .getElementBySId (par_id ) is not None :
263
- raise AssertionError (f"Entity with ID { par_id } exists already." )
263
+ raise ValueError (
264
+ f"Entity with ID { par_id } already exists in the SBML model."
265
+ )
264
266
265
267
# add the pre-steady-state indicator parameter
266
268
add_sbml_parameter (self ._model , id_ = par_id , value = 0 , constant = False )
@@ -273,7 +275,7 @@ def get_experiment_indicator(experiment_id: str) -> str:
273
275
experiment in the SBML model. It is a parameter that is set
274
276
to 1 for the current experiment and 0 for all other
275
277
experiments. The parameter is used in the event trigger
276
- to determine when the event should be triggered.
278
+ to determine whether the event should be triggered.
277
279
278
280
:param experiment_id: The ID of the experiment for which to create
279
281
the experiment indicator parameter ID.
You can’t perform that action at this time.
0 commit comments