Skip to content

Commit

Permalink
- turn off calculate statistic for scan
Browse files Browse the repository at this point in the history
 - write best value in generated plot.
  • Loading branch information
fbergmann committed Feb 2, 2023
1 parent 7169f7f commit d762d0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion basico/task_profile_likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def _generate_scan_for_item(item, index, data_dir, updateModel=False, lower=Fals
fitTask.getMethod().getParameter("Tolerance").setDblValue(Arguments["tolerance"])

problem1 = fitTask.getProblem()
problem1.setCalculateStatistics(False)
logger.debug("... Remove OptItem")
problem1.removeOptItem(item["index"])
logger.debug("... Generate Scan")
Expand Down Expand Up @@ -294,7 +295,8 @@ def _generate_scan_for_item(item, index, data_dir, updateModel=False, lower=Fals
report.setAppend(False)
report.setConfirmOverwrite(False)
logger.debug("... Generate Plot")
COPASI.COutputAssistant.createDefaultOutput(251, scanTask, _DataModel)
plot = COPASI.COutputAssistant.createDefaultOutput(251, scanTask, _DataModel)
plot.setObjectName('{0} = {1}'.format('opt', start_value))
out_file = os.path.abspath("{0}/{1}_{2:05d}_{3}.cps".format(data_dir, Arguments['prefix'], index, middle))
logger.debug(f"Writing '{out_file}'.")
_DataModel.saveModel(out_file, True)
Expand Down

0 comments on commit d762d0b

Please sign in to comment.