aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-10-19 14:40:24 +0200
committerThomas White <taw@physics.org>2017-10-19 14:40:24 +0200
commit64fbb02bf49d1c5a8777913bf1bb063f13819807 (patch)
treec5d8780e639b7b378d6eb95f0d882aab5a1bc67d /scripts
parentda88488674660041eff734aa4dc0d28a1d2bbe4b (diff)
peakogram-stream: Fix included peaks
The min and max values are specified inclusively.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/peakogram-stream2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/peakogram-stream b/scripts/peakogram-stream
index 233a4e6f..5e173386 100755
--- a/scripts/peakogram-stream
+++ b/scripts/peakogram-stream
@@ -141,7 +141,7 @@ if args.imin is not None:
if args.imax is not None:
ymax = args.imax
-keepers = np.where((x>xmin) & (x<xmax) & (y>ymin) & (y<ymax))
+keepers = np.where((x>=xmin) & (x<=xmax) & (y>=ymin) & (y<=ymax))
x = x[keepers]
y = y[keepers]