Skip to content

Commit

Permalink
- prevent using transient values for independent data
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Aug 5, 2022
1 parent 51981bd commit c4283d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion basico/task_parameterestimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c4283d5

Please sign in to comment.