From b802325577ead1b9ee42cb6134228629d430a11c Mon Sep 17 00:00:00 2001 From: "Frank T. Bergmann" Date: Thu, 4 Apr 2024 22:55:08 +0200 Subject: [PATCH] - prepare for COPASI 287 --- copasi_petab_importer/convert_benchmark.py | 4 ++-- copasi_petab_importer/convert_petab.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/copasi_petab_importer/convert_benchmark.py b/copasi_petab_importer/convert_benchmark.py index bcb4fe1..f5ec03f 100644 --- a/copasi_petab_importer/convert_benchmark.py +++ b/copasi_petab_importer/convert_benchmark.py @@ -78,8 +78,8 @@ def add_fit_items(parameters): # if we found it, get its internal identifier and create the item item = problem.addOptItem(cn) - item.setLowerBound(COPASI.CCommonName(str(lower))) # set the lower - item.setUpperBound(COPASI.CCommonName(str(upper))) # and upper bound + item.setLowerBound(COPASI.CRegisteredCommonName(str(lower))) # set the lower + item.setUpperBound(COPASI.CRegisteredCommonName(str(upper))) # and upper bound item.setStartValue(value) # as well as the initial value diff --git a/copasi_petab_importer/convert_petab.py b/copasi_petab_importer/convert_petab.py index ef4ba2e..f61ae09 100644 --- a/copasi_petab_importer/convert_petab.py +++ b/copasi_petab_importer/convert_petab.py @@ -750,10 +750,10 @@ def add_fit_items(self, parameters): item = problem.addOptItem(cn) if np.isnan(lower): lower = math.pow(10, -6) - item.setLowerBound(COPASI.CCommonName(str(lower))) + item.setLowerBound(COPASI.CRegisteredCommonName(str(lower))) if np.isnan(upper): upper = math.pow(10, 6) - item.setUpperBound(COPASI.CCommonName(str(upper))) + item.setUpperBound(COPASI.CRegisteredCommonName(str(upper))) item.setStartValue(value) # as well as the initial value # create experiment specific fit items @@ -799,10 +799,10 @@ def add_fit_items(self, parameters): item = problem.addFitItem(cn) if np.isnan(lower): lower = math.pow(10, -6) - item.setLowerBound(COPASI.CCommonName(str(lower))) + item.setLowerBound(COPASI.CRegisteredCommonName(str(lower))) if np.isnan(upper): upper = math.pow(10, 6) - item.setUpperBound(COPASI.CCommonName(str(upper))) + item.setUpperBound(COPASI.CRegisteredCommonName(str(upper))) item.setStartValue(value) # as well as the initial value item.addExperiment(self.experiment_to_key[condition])