From aaa2d06fb4f87ceace37408d79d279084c3375c5 Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Sun, 30 Apr 2017 00:17:26 +0930 Subject: [PATCH] Removed use of np.flip --- auto_rx/auto_rx.py | 8 +++++++- auto_rx/log/log_files_go_here.txt | 0 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 auto_rx/log/log_files_go_here.txt diff --git a/auto_rx/auto_rx.py b/auto_rx/auto_rx.py index 8d619cd..c2f27ab 100644 --- a/auto_rx/auto_rx.py +++ b/auto_rx/auto_rx.py @@ -7,6 +7,12 @@ # The following binaries will need to be built and copied to this directory: # rs92/rs92gps # scan/rs_detect +# +# The following other packages are needed: +# rtl-sdr (for the rtl_power and rtl_fm utilities) +# sox + + import numpy as np import sys @@ -250,7 +256,7 @@ if __name__ == "__main__": # Sort peaks by power. peak_powers = power[peak_indices] peak_freqs = freq[peak_indices] - peak_frequencies = np.flip(peak_freqs[np.argsort(peak_powers)],0) + peak_frequencies = peak_freqs[np.argsort(peak_powers)][::-1] # Quantize to nearest 5 kHz peak_frequencies = quantize_freq(peak_frequencies, FREQ_QUANTIZATION) diff --git a/auto_rx/log/log_files_go_here.txt b/auto_rx/log/log_files_go_here.txt new file mode 100644 index 0000000..e69de29