diff options
author | Thomas White <taw@physics.org> | 2017-10-19 14:40:24 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-10-19 14:40:24 +0200 |
commit | 64fbb02bf49d1c5a8777913bf1bb063f13819807 (patch) | |
tree | c5d8780e639b7b378d6eb95f0d882aab5a1bc67d /scripts/peakogram-stream | |
parent | da88488674660041eff734aa4dc0d28a1d2bbe4b (diff) |
peakogram-stream: Fix included peaks
The min and max values are specified inclusively.
Diffstat (limited to 'scripts/peakogram-stream')
-rwxr-xr-x | scripts/peakogram-stream | 2 |
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] |