Skip to content

Commit

Permalink
replace call to deprecated np.alltrue with np.all (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt authored Jan 16, 2024
1 parent ec74fe9 commit 6873679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustworkx/visualization/matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def draw_edges(
if (
np.iterable(edge_color)
and (len(edge_color) == len(edge_pos))
and np.alltrue([isinstance(c, Number) for c in edge_color])
and np.all([isinstance(c, Number) for c in edge_color])
):
if edge_cmap is not None:
assert isinstance(edge_cmap, mpl.colors.Colormap)
Expand Down

0 comments on commit 6873679

Please sign in to comment.