Skip to content
Snippets Groups Projects
Commit a269a5d7 authored by René Heß's avatar René Heß
Browse files

Small bugfix

parent e302b92d
No related branches found
No related tags found
No related merge requests found
......@@ -147,8 +147,10 @@ def treepath_to_index(element, treepath, offset=0):
def accumulate_L2_squared():
element = get_trial_element()
if isinstance(element, MixedElement):
tree_pathes = list(map(int, get_option("l2error_tree_path").split(',')))
assert len(tree_pathes) == element.value_size()
tree_pathes = (True,) * element.value_size()
if get_option("l2error_tree_path") is not None:
tree_pathes = list(map(int, get_option("l2error_tree_path").split(',')))
assert len(tree_pathes) == element.value_size()
for i, path in enumerate(tree_pathes):
if path:
_accumulate_L2_squared(get_treepath(element, i))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment