[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: consume method not defined error
From: |
Marcus Müller |
Subject: |
Re: consume method not defined error |
Date: |
Sun, 4 Jul 2021 00:16:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
Hey George,
did you maybe forget that `consume` is a member of the class, and not just a
freestanding
name? You'd want to use `self.consume`, not just `consume`.
Best regards
Marcus
On 02.07.21 22:33, George Edwards wrote:
> Hello,
>
> I am working with Gnuradio 3.8.
>
> In response to my recent question, I think I found out why my program ran
> away in an
> infinite loop. It was because I was not consuming the inputs. So at the end
> of the loop in
> the general_work method when I used all the incoming data, I added the
> following line:
> consume(0,len(input_items[0])
> Gnuradio seems to have a problem with this and issues an error that the
> consume method was
> not defined. How can I fix this?
>
> Thank you!
>
> Regards,
> George
>
>
smime.p7s
Description: S/MIME Cryptographic Signature