From 8b871dd8ac947ba4a8164a63f090d7af6db7c2a5 Mon Sep 17 00:00:00 2001 From: Tommaso Ronconi Date: Wed, 24 Jan 2024 14:38:59 +0100 Subject: [PATCH] solved deprecation warning in casting: np.float() -> float() --- python/xmatch_hi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/xmatch_hi.py b/python/xmatch_hi.py index bed7d8f..a443249 100644 --- a/python/xmatch_hi.py +++ b/python/xmatch_hi.py @@ -128,7 +128,7 @@ z=redshift_names[i] - if (np.float(z) >= zmin) and (np.float(z) <= zmax): + if (float(z) >= zmin) and (float(z) <= zmax): # for final slices file mask_z[i] = True