From d7ec0ab70c885246be00d8312e7b596b88e286dc Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Tue, 29 Nov 2022 16:20:17 -0500 Subject: [PATCH] Direct backport of part of #1873 Co-authored-by: Brett M. Morris --- jdaviz/configs/mosviz/plugins/slit_overlay/slit_overlay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdaviz/configs/mosviz/plugins/slit_overlay/slit_overlay.py b/jdaviz/configs/mosviz/plugins/slit_overlay/slit_overlay.py index 892011c2cd..f3aa085cf2 100644 --- a/jdaviz/configs/mosviz/plugins/slit_overlay/slit_overlay.py +++ b/jdaviz/configs/mosviz/plugins/slit_overlay/slit_overlay.py @@ -17,8 +17,8 @@ def jwst_header_to_skyregion(header): s_region = header['S_REGION'] footprint = s_region.split("POLYGON ICRS")[1].split() - ra = np.array(footprint[::2], dtype=np.float) - dec = np.array(footprint[1::2], dtype=np.float) + ra = np.array(footprint[::2], dtype=float) + dec = np.array(footprint[1::2], dtype=float) # Find center of slit cra = (max(ra) + min(ra)) / 2