diff options
author | Aaron LI <aly@aaronly.me> | 2017-11-03 13:25:42 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-11-03 13:25:42 +0800 |
commit | aeb268cdc60b210484f9b31f7bf72accf690f047 (patch) | |
tree | b8cb2cdb35cb4781ff0f3e4c06b99e4779be70a2 /astro/fits | |
parent | eb2fdf35f276a88158ed2620c28cb3ae7cc4e272 (diff) | |
download | atoolbox-aeb268cdc60b210484f9b31f7bf72accf690f047.tar.bz2 |
Deprecate np.int, np.float
See: https://github.com/numpy/numpy/pull/6103
Diffstat (limited to 'astro/fits')
-rwxr-xr-x | astro/fits/fitscube.py | 2 |
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] |