summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-02-22 14:28:37 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2022-02-22 14:28:37 +0100
commit1540e2f5cf19578e9f25a52bc490960881d0ae99 (patch)
tree84f8c792de587c9a6ea1210b28b13f88a4c08ef7 /lib
parent37c3c6ec5382052743a99d881298255b7b7ccc50 (diff)
ModelAttribute: Keep original parameters when handling interdependent ones
Fixes a severe bug in models using fitted functions
Diffstat (limited to 'lib')
-rw-r--r--lib/parameters.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/parameters.py b/lib/parameters.py
index 45db489..d708401 100644
--- a/lib/parameters.py
+++ b/lib/parameters.py
@@ -800,9 +800,10 @@ class ModelAttribute:
return self.by_param
new_param_values = list()
for param_tuple in self.param_values:
+ new_param_tuple = param_tuple.copy()
for i in self.codependent_params[param_index]:
- param_tuple[i] = None
- new_param_values.append(param_tuple)
+ new_param_tuple[i] = None
+ new_param_values.append(new_param_tuple)
return partition_by_param(self.data, new_param_values)
def depends_on_any_param(self):