summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-01-19 08:06:57 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-01-19 08:06:57 +0100
commite844c4e325e497ceea5e7ac64d12d77ac5026b95 (patch)
tree2f4a22d109c8cef5180972e84e5977bc9bf491e0
parentf4cd1ae0e118b1975b8400ca4047a1d5ca7e20c1 (diff)
assertions
-rw-r--r--lib/parameters.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/parameters.py b/lib/parameters.py
index 00ab70a..45a577b 100644
--- a/lib/parameters.py
+++ b/lib/parameters.py
@@ -1286,8 +1286,11 @@ class ModelAttribute:
)
)
)
+ assert len(child_indexes[-1]) > 0
- if len(list(filter(len, child_indexes))) <= 1:
+ assert len(child_indexes) != 0
+
+ if len(child_indexes) == 1:
# this param only has a single value. there's no point in splitting.
loss.append(np.inf)
continue