Hello, in my application I am interfacing a Brian2 network (built in Cython) with an external simulation that also runs in Cython and is called from Python code.
The two simulations need to exchange data (network states and external input) every timestep.
The only way I found to solve this problem is through the use of a NetworkOperation object that takes care of the communication happening via Python queues among two threads.
While this solution works, it slows down the simulation drammatically.
Could there be a way to provide a callback function directly at the Cython level and by-pass the NetworkOperation?
I think it would be very nice to have a feature such as a Python, Cython or even C++ - level q_in/q_out option