Skip to content

Commit

Permalink
- prepare for COPASI 287
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Apr 4, 2024
1 parent 8368e99 commit b802325
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions copasi_petab_importer/convert_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
8 changes: 4 additions & 4 deletions copasi_petab_importer/convert_petab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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])

Expand Down

0 comments on commit b802325

Please sign in to comment.