From 99db768cb0eb9680fd618bac4a06f9d2332c764f Mon Sep 17 00:00:00 2001 From: Logan Drescher Date: Fri, 4 Oct 2024 08:54:12 -0400 Subject: [PATCH] Switching to "import_sbml" until proper fix one day --- biosimulators_copasi/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/biosimulators_copasi/core.py b/biosimulators_copasi/core.py index 676610c..44fd048 100644 --- a/biosimulators_copasi/core.py +++ b/biosimulators_copasi/core.py @@ -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)