diff options
author | Ryan Volz <ryan.volz@gmail.com> | 2021-10-01 13:55:05 -0400 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-10-05 06:45:41 -0400 |
commit | fd45d06b8fa4c398ffc5cac53b78e82344be9e95 (patch) | |
tree | 765b18f225f33c329c7e0b39c60b8ad7f3ec558a /grc/core/Constants.py | |
parent | 167c9cec2ec4076c2b03e79ffecb7d2de6fabc6b (diff) |
grc: Add aliases for "sc16==short" and "sc8==byte".
When type checking was added for GRC connections, the valid connections
between a block with the "sc16" type (e.g. UHD blocks) and a block
with the "short" type and a vector length of 2 (e.g. ishort->complex)
now fail. Adding these aliases fixes that as a stop-gap until a better
solution can be found.
Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
Diffstat (limited to 'grc/core/Constants.py')
-rw-r--r-- | grc/core/Constants.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/grc/core/Constants.py b/grc/core/Constants.py index 5d7565e647..7d27db104c 100644 --- a/grc/core/Constants.py +++ b/grc/core/Constants.py @@ -121,14 +121,18 @@ ALIAS_OF = { 'float': 'f32', 'int': 's32', 'short': 's16', + 'short': 'sc16', 'byte': 's8', + 'byte': 'sc8', 'bits': 'bit', 'fc32': 'complex', 'f32': 'float', 's32': 'int', 's16': 'short', + 'sc16': 'short', 's8': 'byte', + 'sc8': 'byte', 'bit': 'bits', } |