From f67d94c2410084e94ee86a001ef4ede5bc17bbed Mon Sep 17 00:00:00 2001 From: barate Date: Wed, 15 Jun 2011 08:26:28 +0000 Subject: [PATCH] Copy deterministic dicts to avoid erasing values in parametric functions --- src/KERNEL_PY/kernel/parametric/compo_utils.py | 2 +- src/KERNEL_PY/kernel/parametric/pyscript_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/KERNEL_PY/kernel/parametric/compo_utils.py b/src/KERNEL_PY/kernel/parametric/compo_utils.py index 1037a3b8f..a52967d09 100644 --- a/src/KERNEL_PY/kernel/parametric/compo_utils.py +++ b/src/KERNEL_PY/kernel/parametric/compo_utils.py @@ -49,7 +49,7 @@ def create_input_dict(deterministic_dict, parametric_input): if len(input_point) != len(parametric_input.inputVarList): raise Exception("Size mismatch between inputVarList and point to evaluate") - input_dict = deterministic_dict + input_dict = deterministic_dict.copy() for i in range(len(input_point)): input_dict[parametric_input.inputVarList[i]] = input_point[i][0] diff --git a/src/KERNEL_PY/kernel/parametric/pyscript_utils.py b/src/KERNEL_PY/kernel/parametric/pyscript_utils.py index ee2c384d3..395ee335e 100644 --- a/src/KERNEL_PY/kernel/parametric/pyscript_utils.py +++ b/src/KERNEL_PY/kernel/parametric/pyscript_utils.py @@ -47,7 +47,7 @@ def create_input_dict(deterministic_dict, parametric_input): if len(input_point) != len(parametric_input["inputVarList"]): raise Exception("Size mismatch between inputVarList and point to evaluate") - input_dict = deterministic_dict + input_dict = deterministic_dict.copy() for i in range(len(input_point)): input_dict[parametric_input["inputVarList"][i]] = input_point[i][0] -- 2.39.2