aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-07-16 15:21:15 +0800
committerAaron LI <aly@aaronly.me>2018-07-16 15:21:15 +0800
commita6027343435764ca61275f569ec37c91955f0e83 (patch)
treeb4da700c2e47390586e4e20fb16c0f6ba1d4716f
parentff44047d1bcbf3f4e4d2a0ac6cd3ac7c0d841068 (diff)
downloadatoolbox-a6027343435764ca61275f569ec37c91955f0e83.tar.bz2
astro/z2freq.py: Fix range parsing
-rwxr-xr-xastro/21cm/z2freq.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astro/21cm/z2freq.py b/astro/21cm/z2freq.py
index 454a425..5022877 100755
--- a/astro/21cm/z2freq.py
+++ b/astro/21cm/z2freq.py
@@ -49,7 +49,7 @@ def parse_inputs(inputs):
except ValueError:
begin, step, stop = inp.split(":")
begin, step, stop = float(begin), float(step), float(stop)
- v = np.arange(start=begin, stop=stop+step, step=step)
+ v = np.arange(start=begin, stop=stop+step/2, step=step)
values += list(v)
return values