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/spectrum | |
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/spectrum')
-rwxr-xr-x | astro/spectrum/crosstalk_deprojection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astro/spectrum/crosstalk_deprojection.py b/astro/spectrum/crosstalk_deprojection.py index b08a66a..263cb15 100755 --- a/astro/spectrum/crosstalk_deprojection.py +++ b/astro/spectrum/crosstalk_deprojection.py @@ -1015,7 +1015,7 @@ class SpectrumSet(Spectrum): # {{{ """ neg_counts = self.spec_data < 0 N = len(neg_counts) - neg_channels = np.arange(N, dtype=np.int)[neg_counts] + neg_channels = np.arange(N, dtype=int)[neg_counts] if len(neg_channels) > 0: print("WARNING: %d channels have NEGATIVE counts" % \ len(neg_channels), file=sys.stderr) @@ -1038,7 +1038,7 @@ class SpectrumSet(Spectrum): # {{{ self.spec_data[ch] = 0 # update negative channels indices neg_counts = self.spec_data < 0 - neg_channels = np.arange(N, dtype=np.int)[neg_counts] + neg_channels = np.arange(N, dtype=int)[neg_counts] if i > 0: print("FIXED!", file=sys.stderr) # record history |