discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GrRangeWidget is buggy


From: Miklos Maroti
Subject: Re: GrRangeWidget is buggy
Date: Mon, 5 Sep 2022 21:47:05 +0200

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 <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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]