Closed awkbr549 closed 1 year ago
@awkbr549, this is working fine for me without the change to make period
and int. Can you post of the results of helics --version
here and what version of Python and OS you're using? I'm pretty sure HELICS should allow a float there and am a little concerned that there's a platform + Python + HELICS version where this isn't working.
I had a colleague confirm that on Ubuntu 22.04 with Python 3.8 there wasn't a problem for him. I'm beginning to be frightened that this might be complicated.
Is this still an on-going issue?
Closing due to inactivity.
Describe the bug When attempting to run the
fundamental_message_comm/endpoints
example, the system errors out with the following message(s):[info] Waiting for 3 processes to finish ...
[error] Process Battery has failed, killing other processes
[error] Process Battery exited with return code 1
[warn] Last 10 lines of Battery.log:
...
Traceback (most recent call last):
File "/home/aking72/Development/awkbr549/HELICS-Examples/user_guide_examples/fundamental/fundamental_message_comm/endpoints/Battery.py", line 81, in <module>
fed = h.helicsCreateMessageFederateFromConfig("BatteryConfig.json")
File "/home/aking72/.local/lib/python3.10/site-packages/helics/capi.py", line 3678, in helicsCreateMessageFederateFromConfig
raise HelicsException("[" + str(err.error_code) + "] " + ffi.string(err.message).decode())
helics.capi.HelicsException: [-4] * Line 5, Column 13
'60.0' is not a number.
`
...What is the expected behavior? The code should run without throwing an error.
To Reproduce Steps to reproduce the behavior:
user_guide_examples/fundamental/fundamental_message_comm/endpoints
.helics run --path=fundamental_endpoints_runner.json
.Environment (please complete the following information):
Additional context and information It seems the parsing logic expects an integer type when decoding the
period
argument of a federate configuration file. Simple fix is to replace60.0
with60
.