diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2022-02-22 14:28:37 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2022-02-22 14:28:37 +0100 |
commit | 1540e2f5cf19578e9f25a52bc490960881d0ae99 (patch) | |
tree | 84f8c792de587c9a6ea1210b28b13f88a4c08ef7 /lib | |
parent | 37c3c6ec5382052743a99d881298255b7b7ccc50 (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.py | 5 |
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): |