From aeb268cdc60b210484f9b31f7bf72accf690f047 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 3 Nov 2017 13:25:42 +0800 Subject: Deprecate np.int, np.float See: https://github.com/numpy/numpy/pull/6103 --- astro/fits/fitscube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'astro/fits') diff --git a/astro/fits/fitscube.py b/astro/fits/fitscube.py index 2c9a4fc..7c30783 100755 --- a/astro/fits/fitscube.py +++ b/astro/fits/fitscube.py @@ -165,7 +165,7 @@ class FITSCube: """ nslice = self.nslice wcs = self.wcs - pix = np.zeros(shape=(nslice, 3), dtype=np.int) + pix = np.zeros(shape=(nslice, 3), dtype=int) pix[:, 2] = np.arange(nslice) world = wcs.wcs_pix2world(pix, 0) return world[:, 2] -- cgit v1.2.2