Monday, September 5, 2022

Re: GrRangeWidget is buggy

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.


Best,
Miklos

On Mon, Sep 5, 2022 at 8:31 PM Miklos Maroti <mmaroti@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

No comments:

Post a Comment