Skip to content

Commit

Permalink
- fix an issue where a name would not be resolved to cn but to the ac…
Browse files Browse the repository at this point in the history
…tual object
  • Loading branch information
fbergmann committed Jul 19, 2022
1 parent 2b01044 commit d6436a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basico/task_parameterestimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,7 @@ def add_experiment_from_dict(exp_dict, **kwargs):
role = _role_to_int(mapping['type'])
obj_map.setRole(i, role)
cn = mapping['cn'] if 'cn' in mapping else \
basico.model_info._get_object(mapping['object']) if 'object' in mapping else \
basico.model_info.get_cn(mapping['object']) if 'object' in mapping else \
None
if cn is not None:
obj_map.setObjectCN(i, COPASI.CCommonName(cn))
Expand Down

0 comments on commit d6436a7

Please sign in to comment.