summaryrefslogtreecommitdiff
path: root/gr-filter/examples/reconstruction.py
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-02-26 15:10:41 -0500
committerTom Rondeau <tom@trondeau.com>2014-02-28 11:34:11 -0500
commit92044de1fc8bbbe798071bfeeed8520b6e3c7122 (patch)
treeaab9a8639d02d77b5256fcdd37c552073d8c9fb0 /gr-filter/examples/reconstruction.py
parent22ab16842e30ca9280e62415754018a0d521acb1 (diff)
filters: fixing up some minor issues with the analysis/synthesis filterbanks.
Also adds bus ports capabilities to these filterbanks. Using the GRP properties box, the vector for the bus ports can be set up to group and redirect each channel as necessary.
Diffstat (limited to 'gr-filter/examples/reconstruction.py')
-rwxr-xr-xgr-filter/examples/reconstruction.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-filter/examples/reconstruction.py b/gr-filter/examples/reconstruction.py
index fd8ba87a2f..0a83b5a4e0 100755
--- a/gr-filter/examples/reconstruction.py
+++ b/gr-filter/examples/reconstruction.py
@@ -72,7 +72,7 @@ def main():
src = blocks.vector_source_b(data.astype(scipy.uint8).tolist(), False)
mod = digital.bpsk_mod(samples_per_symbol=2)
- chan = filter.channel_model(npwr)
+ chan = channels.channel_model(npwr)
rrc = filter.fft_filter_ccc(1, rrc_taps)
# Split it up into pieces
@@ -122,7 +122,7 @@ def main():
s12.set_title("Original Signal in Time")
start = 1
- skip = 4
+ skip = 2
s13 = f1.add_subplot(2,2,3)
s13.plot(sin.real[start::skip], sin.imag[start::skip], "o")
s13.set_title("Constellation")
@@ -153,7 +153,7 @@ def main():
s32.plot(sout.imag[1000:1500], "o-r")
s32.set_title("Reconstructed Signal in Time")
- start = 2
+ start = 0
skip = 4
s33 = f3.add_subplot(2,2,3)
s33.plot(sout.real[start::skip], sout.imag[start::skip], "o")