summaryrefslogtreecommitdiff
path: root/gr-analog/python/analog/wfm_rcv_pll.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-analog/python/analog/wfm_rcv_pll.py')
-rw-r--r--gr-analog/python/analog/wfm_rcv_pll.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/gr-analog/python/analog/wfm_rcv_pll.py b/gr-analog/python/analog/wfm_rcv_pll.py
index d69f9e852c..37a9a64c4c 100644
--- a/gr-analog/python/analog/wfm_rcv_pll.py
+++ b/gr-analog/python/analog/wfm_rcv_pll.py
@@ -1,13 +1,12 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
+# Copyright 2007-2020 Free Software Foundation, Inc.
#
# SPDX-License-Identifier: GPL-3.0
#
# GNU Radio Python Flow Graph
# Title: FM stereo demod block
-# corrected output ports
-
import math
@@ -27,12 +26,16 @@ class wfm_rcv_pll(gr.hier_block2):
Args:
demod_rate: input sample rate of complex baseband input. (float)
- audio_decimation: how much to decimate demod_rate to get to audio. (integer)
+ audio_decimation: how much to decimate demod_rate to get to audio. (integer) FIXME: Not actually implemented!
"""
gr.hier_block2.__init__(self, "wfm_rcv_pll",
gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature
gr.io_signature(2, 2, gr.sizeof_float)) # Output signature
+ if audio_decimation != int(audio_decimation):
+ raise ValueError("audio_decimation needs to be an integer")
+ audio_decimation = int(audio_decimation)
+
##################################################
# Variables
##################################################