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
delinearize_vertex_weights fails if one of the shape is given as a numpy array:
/usr/local/lib/python3.6/dist-packages/higra/hg_utils.py in delinearize_vertex_weights(vertex_weights, graph, shape)
201
202 if len(v_shape) >= len(shape):
--> 203 if shape == v_shape[:len(shape)]:
204 return vertex_weights
205
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
This happens with the functions khalimsky_2_graph_4_adjacency which initializes the shape of the returned graph with a numpy array (should be normalized with normalize_shape).
The text was updated successfully, but these errors were encountered:
delinearize_vertex_weights
fails if one of the shape is given as a numpy array:This happens with the functions
khalimsky_2_graph_4_adjacency
which initializes the shape of the returned graph with a numpy array (should be normalized withnormalize_shape
).The text was updated successfully, but these errors were encountered: