diff options
author | Josh Morman <jmorman@gnuradio.org> | 2021-11-24 12:25:09 -0500 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-11-24 14:41:53 -0500 |
commit | 3cecf9268b15bb0e9e2fedaeb2528bd3038beee6 (patch) | |
tree | ba0bb14fa03664b4e69e0dcb944b96ae298264d8 /gr-digital/python/digital/qpsk.py | |
parent | 310b7f0cc25edf90c0bc6754031d763119b0ae97 (diff) |
digital: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gr-digital/python/digital/qpsk.py')
-rw-r--r-- | gr-digital/python/digital/qpsk.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gr-digital/python/digital/qpsk.py b/gr-digital/python/digital/qpsk.py index db97d31fc3..22587948fc 100644 --- a/gr-digital/python/digital/qpsk.py +++ b/gr-digital/python/digital/qpsk.py @@ -27,23 +27,28 @@ _def_mod_code = mod_codes.GRAY_CODE # QPSK constellation # ///////////////////////////////////////////////////////////////////////////// + def qpsk_constellation(mod_code=_def_mod_code): """ Creates a QPSK constellation. """ if mod_code != mod_codes.GRAY_CODE: - raise ValueError("This QPSK mod/demod works only for gray-coded constellations.") + raise ValueError( + "This QPSK mod/demod works only for gray-coded constellations.") return digital.constellation_qpsk() # ///////////////////////////////////////////////////////////////////////////// # DQPSK constellation # ///////////////////////////////////////////////////////////////////////////// + def dqpsk_constellation(mod_code=_def_mod_code): if mod_code != mod_codes.GRAY_CODE: - raise ValueError("The DQPSK constellation is only generated for gray_coding. But it can be used for non-grayed coded modulation if one doesn't use the pre-differential code.") + raise ValueError( + "The DQPSK constellation is only generated for gray_coding. But it can be used for non-grayed coded modulation if one doesn't use the pre-differential code.") return digital.constellation_dqpsk() + # # Add these to the mod/demod registry # |