From 14d5d88012de1064a7bb5318ff646885a6967df9 Mon Sep 17 00:00:00 2001 From: Antonio Valentino Date: Sat, 21 Mar 2026 19:51:59 +0100 Subject: [PATCH] Do not use the deprecated numpy.in1d --- tests/test_dask_image/test_ndmeasure/test_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_dask_image/test_ndmeasure/test_core.py b/tests/test_dask_image/test_ndmeasure/test_core.py index 3bbdc6df..f614889d 100644 --- a/tests/test_dask_image/test_ndmeasure/test_core.py +++ b/tests/test_dask_image/test_ndmeasure/test_core.py @@ -142,7 +142,7 @@ def test_measure_props(funcname, shape, chunks, has_lbls, ind): if ( funcname == "median" and ind is not None and - not np.in1d(np.atleast_1d(ind), lbls).all() + not np.isin(np.atleast_1d(ind), lbls).all() ): pytest.skip("SciPy's `median` mishandles missing labels.")