Skip to content

Commit

Permalink
#39 : clear error message caused by test for existence
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Jan 11, 2024
1 parent 2d281cf commit c0732cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions basico/model_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -5336,6 +5336,10 @@ def add_parameter_set(name, param_set_dict=None, **kwargs):
if sets.getByName(name) is not None:
raise ValueError('Parameter set with name "{}" already exists'.format(name))

# if we are here, the parameter set does not exist yet, unfortunately
# the test added a message, so lets remove it
COPASI.CCopasiMessage.getLastMessage()

if param_set_dict is None:
# create parameter set from current state
new_set = COPASI.CModelParameterSet(name)
Expand Down

0 comments on commit c0732cf

Please sign in to comment.