Re: self.set_history error for python custom block

2023-09-25 Thread Marcus Müller
Yep, most methods of classes are like that; you need to initialize the class first, then can work on its state :) That's why other programming languages than Python don't even give you that much freedom about when to call the superclass constructor. Anyway, I'm very glad you were able to fix th

Re: self.set_history error for python custom block

2023-09-25 Thread Ivan Iudice
I found out to make it work! The problem was that set_history needs to be called after the constructor of the super class. Probably it needs to know first the input signature. You will be able to confirm me that. Thanks for help! Ivan > Il giorno 25 set 2023, alle ore 16:12, Marcus Müller > h

Re: self.set_history error for python custom block

2023-09-25 Thread Marcus Müller
Python incompatibility can safely be ruled out; you wouldn't get far enough. Please share a minimal example of a block that triggers the behaviour. Best, Marcus On 25.09.23 15:49, Ivan Iudice wrote: Nobody knows where could be the problem? I thought an incompatibility between gnuradio and pyth

Re: self.set_history error for python custom block

2023-09-25 Thread Ivan Iudice
Nobody knows where could be the problem?I thought an incompatibility between gnuradio and python versions.Regards.IvanIl giorno 21 set 2023, alle ore 18:13, Ivan Iudice ha scritto:Dear Jeff,thank you for answer.My code does exactly the same things.Regards.IvanIl giorno 21 set 2023, alle ore 17:55

Re: self.set_history error for python custom block

2023-09-21 Thread Ivan Iudice
Dear Jeff,thank you for answer.My code does exactly the same things.Regards.IvanIl giorno 21 set 2023, alle ore 17:55, Jeff Long ha scritto:Here is an example (from the QA code) of using history from a Python block.https://github.com/gnuradio/gnuradio/blob/5953d3c96b42086c5f8c5f97b6fd7e57717f9aa5

Re: self.set_history error for python custom block

2023-09-21 Thread Jeff Long
Here is an example (from the QA code) of using history from a Python block. https://github.com/gnuradio/gnuradio/blob/5953d3c96b42086c5f8c5f97b6fd7e57717f9aa5/gr-blocks/python/blocks/qa_block_gateway.py#L60 See if your code appears to be doing the same thing. On Thu, Sep 21, 2023 at 11:03 AM wr

self.set_history error for python custom block

2023-09-21 Thread krono86
Hello List! I'm trying to implement a sync block into a OOT module that use previous samples of the input streams. So, I'm using the method set_history in the constructor. The problem is that when I use self.set_history(N) I obtain the following errors: Generating: '/home/userr/workspace/gn