GMLC-TDC / HELICS

Hierarchical Engine for Large-scale Infrastructure Co-Simulation (HELICS)
https://docs.helics.org/en/latest/
BSD 3-Clause "New" or "Revised" License
126 stars 40 forks source link

loglevel: 1 not in {summary,none,connections,no_print,profiling,interfaces,error,timing,warning,data,debug,trace} #2662

Closed LBorden24 closed 4 months ago

LBorden24 commented 4 months ago

Attempting to write my first custom HELICS co-simulation. Upon executing the program, one of my files fails with the Exception in the screenshot below. I have not been able to find what this error message means making it hard to fix. If anyone can explain, or point me to documentation on what this error means and how to fix it that would be appreciated. Thanks

helics loglevel
trevorhardy commented 4 months ago

A little while back we changed the way we designate log levels from using numerical values to using strings. The error message is indicating that you need to use one of the strings indicated in the error message (e.g. "debug", "warning") instead of a numeric value. It looks like your setting it in the "wind_input_config_test.json"; look for the "log_level" (or "loglevel" or "logLevel" or...) parameter value.

LBorden24 commented 4 months ago

Understood, thank you. That has resolved my problem. I am now getting the new error message below, but at least that's some amount of progress image

trevorhardy commented 4 months ago

I'm guessing that is a JSON validation error. Try running your JSON config through a JSON validator online to see if it thinks the config file is OK.

LBorden24 commented 4 months ago

Yeah, I had a bracket in the wrong spot. Easy enough fix. Thanks for your help.