diff options
author | Johannes Demel <demel@uni-bremen.de> | 2019-07-20 12:32:02 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-07-23 21:26:52 -0700 |
commit | 58857ac727084a5d40fdbfc5f597f734811cef0c (patch) | |
tree | bd666110c9c2f7cb928acb992ae5fe70b7c39cde /grc/gui/VariableEditor.py | |
parent | f7f3866998584c35b27613c5a5464727b981587f (diff) |
digital: Fix GRC examples for YAML format
With this commit the remaining GRC examples that were not yet converted
to YAML are converted too.
GRC did not open these examples because it threw an error.
> Error: (ValueError("invalid literal for int() with base 10:
> 'digital.packet_utils.default_access_code'",), '% if
> int(eval(access_code))==0:\nself.${id} = ${id} =
> digital.header_format_default(digital.packet_utils.default_access_code,\\\n${threshold},
> ${bps})\n% else:\nself.${id} = ${id} =
> digital.header_format_default(${access_code},\\\n${threshold}, ${bps})\n% endif')
This could be fixed by manually editing the corresponding GRC files. All
uses of `digital.packet_utils.default_access_code` are replaced with a
string. This allows GRC to open these files. Still, GRC will hang in
case `digital.packet_utils.default_access_code` is used again.
This hints at a bug with the `default_access_code` code.
Diffstat (limited to 'grc/gui/VariableEditor.py')
0 files changed, 0 insertions, 0 deletions