Re: "forecast" function error in Embedded Python basic_block

2024-11-01 Thread Achilleas Anastasopoulos
I guess I answered my own question: The forecast function definition has changed in gnuradio 3.10 and it is now defined in such a way that the second argument is only the number of input ports. So a correct forecast looks like this. def forecast(self, noutput_items, ninputs): ninput_i

"forecast" function error in Embedded Python basic_block

2024-11-01 Thread Achilleas Anastasopoulos
Hi everyone, I am running a simple flowgraph where I use an embedded python block. I have rewritten a forecast function. When I run the code I get: Executing: /usr/bin/python3 -u top_block.py thread_body_wrapper :error: ERROR thread[thread-per-block[15]: ]: TypeError: 'int' object