From 6873679c54b10b1de4980566db755401b317422c Mon Sep 17 00:00:00 2001 From: Pieter Eendebak Date: Tue, 16 Jan 2024 18:31:07 +0100 Subject: [PATCH] replace call to deprecated np.alltrue with np.all (#1054) --- rustworkx/visualization/matplotlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustworkx/visualization/matplotlib.py b/rustworkx/visualization/matplotlib.py index 95058c4839..92952dbf19 100644 --- a/rustworkx/visualization/matplotlib.py +++ b/rustworkx/visualization/matplotlib.py @@ -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)