xml -> yaml
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
# auto-generated by grc.converter
|
||||
|
||||
id: foo_channel_model
|
||||
label: Channel Model
|
||||
category: '[Foo]'
|
||||
|
||||
parameters:
|
||||
- id: noise_voltage
|
||||
label: Noise Voltage
|
||||
dtype: real
|
||||
default: '0.0'
|
||||
- id: freq_offset
|
||||
label: Frequency Offset
|
||||
dtype: real
|
||||
default: '0.0'
|
||||
- id: epsilon
|
||||
label: Epsilon
|
||||
dtype: real
|
||||
default: '1.0'
|
||||
- id: taps
|
||||
label: Taps
|
||||
dtype: complex_vector
|
||||
default: 1.0 + 1.0j
|
||||
- id: seed
|
||||
label: Seed
|
||||
dtype: int
|
||||
default: '0'
|
||||
- id: block_tags
|
||||
label: Block Tag Propagation
|
||||
dtype: enum
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: ['Yes', 'No']
|
||||
option_attributes:
|
||||
hide_block: ['', part]
|
||||
hide: ${ block_tags.hide_block }
|
||||
|
||||
inputs:
|
||||
- domain: stream
|
||||
dtype: complex
|
||||
|
||||
outputs:
|
||||
- domain: stream
|
||||
dtype: complex
|
||||
|
||||
templates:
|
||||
imports: import foo
|
||||
make: "foo.channel_model(\n\tnoise_voltage=${noise_voltage},\n\tfrequency_offset=${freq_offset},\n\
|
||||
\tepsilon=${epsilon},\n\ttaps=${taps},\n\tnoise_seed=${seed},\n\tblock_tags=${block_tags}\n\
|
||||
)"
|
||||
callbacks:
|
||||
- set_noise_voltage(${noise_voltage})
|
||||
- set_frequency_offset(${freq_offset})
|
||||
- set_taps(${taps})
|
||||
- set_timing_offset(${epsilon})
|
||||
|
||||
file_format: 1
|
||||
Reference in New Issue
Block a user