summaryrefslogtreecommitdiff
path: root/gr-digital/python/digital/utils/mod_codes.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/python/digital/utils/mod_codes.py')
-rw-r--r--gr-digital/python/digital/utils/mod_codes.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-digital/python/digital/utils/mod_codes.py b/gr-digital/python/digital/utils/mod_codes.py
index bafb85e18b..f0ac9f1fb5 100644
--- a/gr-digital/python/digital/utils/mod_codes.py
+++ b/gr-digital/python/digital/utils/mod_codes.py
@@ -1,12 +1,12 @@
#!/usr/bin/env python
#
# Copyright 2011 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# SPDX-License-Identifier: GPL-3.0-or-later
#
-#
+#
# Constants used to represent what coding to use.
GRAY_CODE = 'gray'
@@ -15,6 +15,7 @@ NO_CODE = 'none'
codes = (GRAY_CODE, SET_PARTITION_CODE, NO_CODE)
+
def invert_code(code):
c = enumerate(code)
ic = [(b, a) for (a, b) in c]