You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Though the example works on my computer (macOS, HELICS v3.6.0), the multi-broker example is failing in the Github auto-testing suite due to not being able to parse the brokerport value in the JSON config.
What is the expected behavior?
Examples should work in all environments.
To Reproduce
Environment:
Operating System: Linux Ubuntu 24.04.1 LTS
Language Extension: Python
what compiler or setup process did you use: `pip install helics[cli] helics_apps
HELICS version:
$ helics_app --version
helics, version 3.6.0
Python HELICS version 3.6.0
HELICS Library version 3.6.0 (2024-12-09)
HELICS Apps version 3.6.0
Error message from the federates shows whitespace where the invalid port number should be. They also don't show the valid port number range so something weird is going on.
Traceback (most recent call last):
File "/home/runner/work/HELICS-Examples/HELICS-Examples/user_guide_examples/advanced/advanced_brokers/multi_broker/Charger.py", line 141, in <module>
fed = h.helicsCreateCombinationFederateFromConfig("ChargerConfig.json")
File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/helics/capi.py", line 3757, in helicsCreateCombinationFederateFromConfig
raise HelicsException("[" + str(err.error_code) + "] " + ffi.string(err.message).decode())
helics.capi.HelicsException: [-3] --brokerport: Value not in range [
Traceback (most recent call last):
File "/home/runner/work/HELICS-Examples/HELICS-Examples/user_guide_examples/advanced/advanced_brokers/multi_broker/Controller.py", line 49, in <module>
fed = h.helicsCreateMessageFederateFromConfig("ControllerConfig.json")
File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/helics/capi.py", line 3712, in helicsCreateMessageFederateFromConfig
raise HelicsException("[" + str(err.error_code) + "] " + ffi.string(err.message).decode())
helics.capi.HelicsException: [-3] --brokerport: Value not in range [
Traceback (most recent call last):
File "/home/runner/work/HELICS-Examples/HELICS-Examples/user_guide_examples/advanced/advanced_brokers/multi_broker/Battery.py", line 78, in <module>
fed = h.helicsCreateValueFederateFromConfig("BatteryConfig.json")
File "/opt/hostedtoolcache/Python/3.10.16/x[64](https://github.com/GMLC-TDC/HELICS-Examples/actions/runs/12718223150/job/35456459653#step:8:65)/lib/python3.10/site-packages/helics/capi.py", line 3669, in helicsCreateValueFederateFromConfig
raise HelicsException("[" + str(err.error_code) + "] " + ffi.string(err.message).decode())
helics.capi.HelicsException: [-3] --brokerport: Value not in range [
The text was updated successfully, but these errors were encountered:
Describe the bug
Though the example works on my computer (macOS, HELICS v3.6.0), the multi-broker example is failing in the Github auto-testing suite due to not being able to parse the
brokerport
value in the JSON config.What is the expected behavior?
Examples should work in all environments.
To Reproduce
Environment:
Error message from the federates shows whitespace where the invalid port number should be. They also don't show the valid port number range so something weird is going on.
The text was updated successfully, but these errors were encountered: