On Mon, Feb 8, 2021 at 8:09 PM George Edwards <gedwards.eng@gmail.com> wrote:
Hello,I have a problem writing the yml file for a variable number of inputs to my GRC block. In the OOT Python file, a parameter called n_input is passed into the GRC block and I was hoping it would be accessible in the yml file. In the yml file I wrote:parameters:- id: n_inputslabel: Number of Inputsdtype: intdefault: 3inputs:- domain: streamdtype: complexmultiplicity: n_inputsThe program fails with message: invalid literal for int() with base 10. Then, I tried multiplicity with: int(n_inputs) and 'n_input' which all failed. How can I fix this, because if I were to specify a static value for example: multiplicity: '5', it works and provides a block with 5 inputs.I will appreciate any help offered!Thank you!George
No comments:
Post a Comment