diff options
author | Anders Kalør <anders@kaloer.com> | 2019-08-12 20:47:22 +0200 |
---|---|---|
committer | Derek Kozel <derek.kozel@gmail.com> | 2019-08-29 10:08:45 +0100 |
commit | 822aedb5b8934549a10b70dc602a178f9765eef0 (patch) | |
tree | b715f99866f00d9058604698b2427147dcaaade5 /gr-utils/python | |
parent | cc4df6fd3f9173138b706cb554d1297d77e3c9c1 (diff) |
Improve GRC YAML template
Diffstat (limited to 'gr-utils/python')
-rw-r--r-- | gr-utils/python/modtool/templates/templates.py | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/gr-utils/python/modtool/templates/templates.py b/gr-utils/python/modtool/templates/templates.py index e89cf81bab..e6c1197dd1 100644 --- a/gr-utils/python/modtool/templates/templates.py +++ b/gr-utils/python/modtool/templates/templates.py @@ -550,11 +550,11 @@ templates: imports: import ${modname} make: ${modname}.${blockname}(${strip_arg_types_grc(arglist)}) -# Make one 'parameters' list entry for every Parameter you want settable from the GUI. -# Sub-entries of dictionary: +# Make one 'parameters' list entry for every parameter you want settable from the GUI. +# Keys include: # * id (makes the value accessible as \$keyname, e.g. in the make entry) -# * label -# * dtype +# * label (label shown in the GUI) +# * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...) parameters: - id: ... label: ... @@ -563,27 +563,29 @@ parameters: label: ... dtype: ... -# Make one 'inputs' list entry per input. Sub-entries of dictionary: +# Make one 'inputs' list entry per input and one 'outputs' list entry per output. +# Keys include: # * label (an identifier for the GUI) -# * domain -# * dtype -# * vlen -# * optional (set to 1 for optional inputs) +# * domain (optional - stream or message. Default is stream) +# * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...) +# * vlen (optional - data stream vector length. Default is 1) +# * optional (optional - set to 1 for optional inputs. Default is 0) inputs: - label: ... domain: ... dtype: ... vlen: ... + optional: ... -# Make one 'outputs' list entry per output. Sub-entries of dictionary: -# * label (an identifier for the GUI) -# * dtype -# * vlen -# * optional (set to 1 for optional inputs) +outputs: - label: ... domain: ... - dtype: ... #!-- e.g. int, float, complex, byte, short, xxx_vector, ...-- + dtype: ... + vlen: ... + optional: ... +# 'file_format' specifies the version of the GRC yml format used in the file +# and should usually not be changed. file_format: 1 ''' |