From acec874ecd00b9a1f87b0d1405f6fa1e6503d2b7 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 13 May 2017 15:27:35 +0200 Subject: DPD: calculate spectrum in complex double --- dpd/show_spectrum.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dpd') diff --git a/dpd/show_spectrum.py b/dpd/show_spectrum.py index 83ecd8d..e92c1d0 100755 --- a/dpd/show_spectrum.py +++ b/dpd/show_spectrum.py @@ -101,6 +101,10 @@ def get_samples(port, num_samps_to_request): def get_spectrum(port, num_samps_to_request): tx_ts, txframe, rx_ts, rxframe = get_samples(port, num_samps_to_request) + # convert to complex doubles for more dynamic range + txframe = txframe.astype(np.complex128) + rxframe = rxframe.astype(np.complex128) + print("Received {} & {} frames at {} and {}".format( len(txframe), len(rxframe), tx_ts, rx_ts)) -- cgit v1.2.3