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/galactic/synchrotron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fg21sim/galactic') diff --git a/fg21sim/galactic/synchrotron.py b/fg21sim/galactic/synchrotron.py index 2d1a59f..525845b 100644 --- a/fg21sim/galactic/synchrotron.py +++ b/fg21sim/galactic/synchrotron.py @@ -114,7 +114,7 @@ class Synchrotron: alpha = 0.0599 beta = 0.782 # angular power spectrum of the Gaussian random field - ell = np.arange(self.lmax+1).astype(np.int) + ell = np.arange(self.lmax+1, dtype=int) cl = np.zeros(ell.shape) ell_idx = ell >= self.lmin cl[ell_idx] = (ell[ell_idx] ** gamma * -- cgit v1.2.2