aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/sky.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-11-03 13:38:08 +0800
committerAaron LI <aly@aaronly.me>2017-11-03 13:38:08 +0800
commite25e0d95600b548f2237163e8fd88b219397fca4 (patch)
tree2587f9b848a686df3c1124387fddf58fc1835e63 /fg21sim/sky.py
parent7a88ee0ecbc74ece326249c90ecb170f087be2d0 (diff)
downloadfg21sim-e25e0d95600b548f2237163e8fd88b219397fca4.tar.bz2
Deprecate np.int, np.float
See: https://github.com/numpy/numpy/pull/6103
Diffstat (limited to 'fg21sim/sky.py')
-rw-r--r--fg21sim/sky.py4
1 files changed, 2 insertions, 2 deletions
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):