GMLC-TDC / HELICS-Tutorial

Tutorial of running a HELICS Co-Simulation
http://gmlc-tdc.github.io/HELICS-Tutorial
BSD 3-Clause "New" or "Revised" License
3 stars 7 forks source link

Tutorial 1 not working with GridLAB-D #13

Open trevorhardy opened 1 year ago

trevorhardy commented 1 year ago

GridLAB-D now returns a complex data type instead of a real, imaginary tuple which federate1.py is expecting. The example should be updated to handle the new output from GridLAB-D.

GridLAB-D version: feature/730 HELICS version: v3.3.0

l.89 in federate1.py is: rValue, iValue = h.helicsInputGetComplex(subid) should be: cValue = h.helicsInputGetComplex(subid)

afisher1 commented 1 year ago

I don't think this is a cause of GridLAB-D. The python HELICS api functions concerning complex values were updated to accept and return python complex types around v3.0 of HELICS. It still doesn't change the recommended solution though.