python message federate example #1599
-
Hi, I was wondering if anyone could point me in the direction of an example for creating message federates in python, similar to this example for value federates https://docs.helics.org/en/latest/introduction/python.html#python-example . Or even in another language would be fine, as long as the APIs are similar. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We're in the process of creating a fleet of Python-based examples that will be linked to the User Guide (also being re-worked). If you look in the HELICS-examples repo,the filter example sends messages between Charger.py and Controller.py. See also the same code to see how you can set up a Python federate to receive messages. (If you want to play along at home, we are adding the other examples in the |
Beta Was this translation helpful? Give feedback.
We're in the process of creating a fleet of Python-based examples that will be linked to the User Guide (also being re-worked). If you look in the HELICS-examples repo,the filter example sends messages between Charger.py and Controller.py. See also the same code to see how you can set up a Python federate to receive messages.
(If you want to play along at home, we are adding the other examples in the
user_guide_examples
branch over the coming weeks and they'll eventually be moved intomaster
and linked in the User Guide.)