aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/galactic
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/galactic
parent7a88ee0ecbc74ece326249c90ecb170f087be2d0 (diff)
downloadfg21sim-e25e0d95600b548f2237163e8fd88b219397fca4.tar.bz2
Deprecate np.int, np.float
See: https://github.com/numpy/numpy/pull/6103
Diffstat (limited to 'fg21sim/galactic')
-rw-r--r--fg21sim/galactic/synchrotron.py2
1 files changed, 1 insertions, 1 deletions
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 *