You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
It should also work with empty trees, see this stacktrace:
File "/usr/local/lib/python3.6/dist-packages/wknml/nml_utils.py", line 98, in ensure_max_edge_length
max_id = detect_max_node_id_from_all_graphs(nml_graph)
File "/usr/local/lib/python3.6/dist-packages/wknml/nml_utils.py", line 49, in detect_max_node_id_from_all_graphs
max_id_of_current_tree = np.array(list(tree.nodes)).max()
File "/usr/local/lib/python3.6/dist-packages/numpy/core/_methods.py", line 30, in _amax
return umr_maximum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation maximum which has no identity
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current
ensure_max_edge_length
processes only trees that are part of a group. It should work on all trees instead.The relevant lines seem to be https://github.com/scalableminds/wknml/blob/master/wknml/nml_utils.py#L101-L102
The text was updated successfully, but these errors were encountered: