summaryrefslogtreecommitdiffstats
path: root/dpd/show_spectrum.py
diff options
context:
space:
mode:
Diffstat (limited to 'dpd/show_spectrum.py')
-rwxr-xr-xdpd/show_spectrum.py4
1 files changed, 4 insertions, 0 deletions
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))