From c4283d5d632165e87b3c87db37aae27386720b6d Mon Sep 17 00:00:00 2001 From: "Frank T. Bergmann" Date: Fri, 5 Aug 2022 12:07:30 +0200 Subject: [PATCH] - prevent using transient values for independent data --- basico/task_parameterestimation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basico/task_parameterestimation.py b/basico/task_parameterestimation.py index 732ec16..07e4a9a 100644 --- a/basico/task_parameterestimation.py +++ b/basico/task_parameterestimation.py @@ -1701,8 +1701,9 @@ def add_experiment_from_dict(exp_dict, **kwargs): continue role = _role_to_int(mapping['type']) obj_map.setRole(i, role) + need_initial = True if mapping['type'] == 'independent' else False cn = mapping['cn'] if 'cn' in mapping else \ - basico.model_info.get_cn(mapping['object']) if 'object' in mapping else \ + basico.model_info.get_cn(mapping['object'], initial=need_initial ) if 'object' in mapping else \ None if cn is not None: obj_map.setObjectCN(i, COPASI.CCommonName(cn))