summaryrefslogtreecommitdiffstats
path: root/dpd/show_spectrum.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-09 10:57:56 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-09 11:00:08 +0200
commit4308cf780fd644d4fb8091314983bfae18e00c89 (patch)
tree2e9431990b06647496c1bf05eba755a6c36b80e1 /dpd/show_spectrum.py
parent7c1c9c5b75803bb2d697db1a71150d6779ba699f (diff)
downloaddabmod-4308cf780fd644d4fb8091314983bfae18e00c89.tar.gz
dabmod-4308cf780fd644d4fb8091314983bfae18e00c89.tar.bz2
dabmod-4308cf780fd644d4fb8091314983bfae18e00c89.zip
Add TODO reminder in show_spectrum.py
Diffstat (limited to 'dpd/show_spectrum.py')
-rwxr-xr-xdpd/show_spectrum.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/dpd/show_spectrum.py b/dpd/show_spectrum.py
index 0ed0ebf..0ae24c2 100755
--- a/dpd/show_spectrum.py
+++ b/dpd/show_spectrum.py
@@ -92,6 +92,7 @@ def get_samples(port, num_samps_to_request):
else:
txframe = np.array([], dtype=np.complex64)
+
print("Wait for RX metadata")
rx_second, rx_pps = struct.unpack("=II", recv_exact(s, 8))
rx_ts = rx_second + rx_pps / 16384000.0
@@ -172,6 +173,7 @@ def plot_constellation_once(options):
#imsave("spectrums.png", np.abs(spectrums))
# Only take bins that are supposed to contain energy
+ #TODO this is only valid for 2048000 sample rate!
spectrums = np.concatenate([spectrums[...,256:1024], spectrums[...,1025:1793]], axis=1)
sym_indices = (np.tile(np.arange(num_syms-1).reshape(num_syms-1,1), (1,NbCarriers)) +