Dear All,

This is the commit that introduced the line "self.${id} = ${win}" which I
think is the main cause of the bug. I wonder if that was intentional or a
simple mistake.

https://github.com/gnuradio/gnuradio/commit/0427b2a6781a08cc57d82b27fbdd9a2300a34919

Best,
Miklos

On Mon, Sep 5, 2022 at 8:31 PM Miklos Maroti <mmar...@gmail.com> wrote:

> Hi All,
>
> If you use the value of the range widget in an expression for a callback,
> then you get the error:
>
> TypeError: unsupported operand type(s) for +: 'float' and 'GrRangeWidget'
>
> I have tested this for the maint 3.10 branch, but the relevant files are
> unchanged in the master branch. I have attached a simple flowgraph where we
> have two range widgets, one noise source and one frequency sink. The
> amplitude of the noise source is the sum of the two range widget values. If
> you change any of the widgets, then the flowgraph crashes with the above
> error.
>
> I am not sure why this is happening, any help would be appreciated. One
> workaround which seems to help if I uncomment the "self.${id} = ${win}"
> line in the grc yml file.
>
> Best,
> Miklos
>

Reply via email to