summaryrefslogtreecommitdiff
path: root/lib/parameters.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parameters.py')
-rw-r--r--lib/parameters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parameters.py b/lib/parameters.py
index 96a996e..210cbe3 100644
--- a/lib/parameters.py
+++ b/lib/parameters.py
@@ -828,7 +828,7 @@ class ModelAttribute:
return np.median(self.by_param[param])
def get_by_param(self):
- if self.by_param is None:
+ if self.by_param is None and self.param_values is not None:
self.by_param = partition_by_param(self.data, self.param_values)
return self.by_param