summaryrefslogtreecommitdiff
path: root/gr-uhd/apps/hf_radio/ssbdemod.py
diff options
context:
space:
mode:
authorTom Rondeau2012-04-13 18:36:53 -0400
committerTom Rondeau2012-04-13 18:36:53 -0400
commitf919f9dcbb54a08e6e26d6c229ce92fb784fa1b2 (patch)
tree7e846386b9eb1676f9a93fc4a1e55916b9accc97 /gr-uhd/apps/hf_radio/ssbdemod.py
parent6a1e9783fec6ed827f49db27c171591d30f32933 (diff)
downloadgnuradio-f919f9dcbb54a08e6e26d6c229ce92fb784fa1b2.tar.gz
gnuradio-f919f9dcbb54a08e6e26d6c229ce92fb784fa1b2.tar.bz2
gnuradio-f919f9dcbb54a08e6e26d6c229ce92fb784fa1b2.zip
Removed whitespace and added dtools/bin/remove-whitespace as a tool to do this in the future.
The sed script was provided by Moritz Fischer.
Diffstat (limited to 'gr-uhd/apps/hf_radio/ssbdemod.py')
-rw-r--r--gr-uhd/apps/hf_radio/ssbdemod.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/gr-uhd/apps/hf_radio/ssbdemod.py b/gr-uhd/apps/hf_radio/ssbdemod.py
index 072d317a2..3c533f617 100644
--- a/gr-uhd/apps/hf_radio/ssbdemod.py
+++ b/gr-uhd/apps/hf_radio/ssbdemod.py
@@ -1,22 +1,22 @@
# Copyright 2011 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
# This tries to push the hilbert transform for ssb demod back into the
# freq. xlating filter.
@@ -45,7 +45,7 @@ class ssb_demod( gr.hier_block2 ):
self.sideband = 1
self.xlate_taps = ([complex(v) for v in file('ssb_taps').readlines()])
-
+
self.audio_taps = gr.firdes.low_pass(
1.0,
self.af_rate,
@@ -69,7 +69,7 @@ class ssb_demod( gr.hier_block2 ):
self.sb_sel = gr.multiply_const_ff( 1 )
self.mixer = gr.add_ff()
self.am_det = gr.complex_to_mag()
-
+
self.connect(self, self.xlate)
self.connect(self.xlate, self.split)
self.connect((self.split, 0), (self.sum, 0))
@@ -83,7 +83,7 @@ class ssb_demod( gr.hier_block2 ):
self.connect(self.lpf, self)
def upper_sb( self ):
- self.xlate.set_taps([v.conjugate() for v in self.xlate_taps])
+ self.xlate.set_taps([v.conjugate() for v in self.xlate_taps])
self.sb_sel.set_k( 1.0 )
self.am_sel.set_k( 0.0 )
@@ -91,7 +91,7 @@ class ssb_demod( gr.hier_block2 ):
self.xlate.set_taps(self.xlate_taps)
self.sb_sel.set_k( 1.0 )
self.am_sel.set_k( 0.0 )
-
+
def set_am( self ):
taps = gr.firdes.low_pass( 1.0,
self.if_rate,