From e25e0d95600b548f2237163e8fd88b219397fca4 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 3 Nov 2017 13:38:08 +0800 Subject: Deprecate np.int, np.float See: https://github.com/numpy/numpy/pull/6103 --- fg21sim/sky.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fg21sim/sky.py') diff --git a/fg21sim/sky.py b/fg21sim/sky.py index a8b0705..724e3fa 100644 --- a/fg21sim/sky.py +++ b/fg21sim/sky.py @@ -545,8 +545,8 @@ class SkyPatch(SkyBase): pixelsize = self.pixelsize * AUC.arcsec2deg # [deg] x, y = np.asarray(x), np.asarray(y) # [deg] ri0, ci0 = self.ysize//2, self.xsize//2 - ri = np.round((y - self.ycenter) / pixelsize + ri0).astype(np.int) - ci = np.round((x - self.xcenter) / pixelsize + ci0).astype(np.int) + ri = np.round((y - self.ycenter) / pixelsize + ri0).astype(int) + ci = np.round((x - self.xcenter) / pixelsize + ci0).astype(int) return (ri, ci) def load(self, infile, frequency=None): -- cgit v1.2.2