Skip to content

Commit b802325

Browse files
committed
- prepare for COPASI 287
1 parent 8368e99 commit b802325

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: copasi_petab_importer/convert_benchmark.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ def add_fit_items(parameters):
7878

7979
# if we found it, get its internal identifier and create the item
8080
item = problem.addOptItem(cn)
81-
item.setLowerBound(COPASI.CCommonName(str(lower))) # set the lower
82-
item.setUpperBound(COPASI.CCommonName(str(upper))) # and upper bound
81+
item.setLowerBound(COPASI.CRegisteredCommonName(str(lower))) # set the lower
82+
item.setUpperBound(COPASI.CRegisteredCommonName(str(upper))) # and upper bound
8383
item.setStartValue(value) # as well as the initial value
8484

8585

Diff for: copasi_petab_importer/convert_petab.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -750,10 +750,10 @@ def add_fit_items(self, parameters):
750750
item = problem.addOptItem(cn)
751751
if np.isnan(lower):
752752
lower = math.pow(10, -6)
753-
item.setLowerBound(COPASI.CCommonName(str(lower)))
753+
item.setLowerBound(COPASI.CRegisteredCommonName(str(lower)))
754754
if np.isnan(upper):
755755
upper = math.pow(10, 6)
756-
item.setUpperBound(COPASI.CCommonName(str(upper)))
756+
item.setUpperBound(COPASI.CRegisteredCommonName(str(upper)))
757757
item.setStartValue(value) # as well as the initial value
758758

759759
# create experiment specific fit items
@@ -799,10 +799,10 @@ def add_fit_items(self, parameters):
799799
item = problem.addFitItem(cn)
800800
if np.isnan(lower):
801801
lower = math.pow(10, -6)
802-
item.setLowerBound(COPASI.CCommonName(str(lower)))
802+
item.setLowerBound(COPASI.CRegisteredCommonName(str(lower)))
803803
if np.isnan(upper):
804804
upper = math.pow(10, 6)
805-
item.setUpperBound(COPASI.CCommonName(str(upper)))
805+
item.setUpperBound(COPASI.CRegisteredCommonName(str(upper)))
806806
item.setStartValue(value) # as well as the initial value
807807
item.addExperiment(self.experiment_to_key[condition])
808808

0 commit comments

Comments
 (0)