Skip to content

Commit

Permalink
Switching to "import_sbml" until proper fix one day
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByDrescher committed Oct 4, 2024
1 parent 99ac466 commit 99db768
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion biosimulators_copasi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ def preprocess_sed_task(task: Task, variables: list[Variable],
# instantiate model
basico_data_model: COPASI.CDataModel
try:
basico_data_model = basico.load_model(model.source)
basico_data_model = \
basico.import_sbml(model.source, annotations_to_remove=[('initialValue', 'http://copasi.org/initialValue')])
except COPASI.CCopasiException as e:
raise ValueError(f"SBML '{model.source}' could not be imported into COPASI;\n\t", e)

Expand Down

0 comments on commit 99db768

Please sign in to comment.