aboutsummaryrefslogtreecommitdiffstats
path: root/astro/fits
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-11-03 13:25:42 +0800
committerAaron LI <aly@aaronly.me>2017-11-03 13:25:42 +0800
commitaeb268cdc60b210484f9b31f7bf72accf690f047 (patch)
treeb8cb2cdb35cb4781ff0f3e4c06b99e4779be70a2 /astro/fits
parenteb2fdf35f276a88158ed2620c28cb3ae7cc4e272 (diff)
downloadatoolbox-aeb268cdc60b210484f9b31f7bf72accf690f047.tar.bz2
Deprecate np.int, np.float
See: https://github.com/numpy/numpy/pull/6103
Diffstat (limited to 'astro/fits')
-rwxr-xr-xastro/fits/fitscube.py2
1 files changed, 1 insertions, 1 deletions
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]