Revision history [back]
Python API error handling (to stderr)
Hi,
I am working with the Python API 0.2 and EnergyPlus 22.1.0.
I need to do some value checking (if values are finite) inside of my callback functions. What I noticed is, that (a) ValueErrors in Python code do not get recognized during a run (nor after one), (2) the stderr does not print them either, and (3) the api.runtime.issue_severe() does not stop EnergyPlus or prints the error message to stderr.
Is there any way to let EnergyPlus in case of a Python error stop and print the error to the stderr or as an alternative, let Python stop EnergyPlus?
Thanks for any help here
Python API error handling (to stderr)
Hi,
I am working with the Python API 0.2 and EnergyPlus 22.1.0.
I need to do some value checking (if values are finite) inside of my callback functions. What I noticed is, that (a) ValueErrors in Python code do not get recognized during a run (nor after one), (2) the stderr does not print them either, and (3) the api.runtime.issue_severe() does not stop EnergyPlus or prints the error message to stderr.
Is there any way to let EnergyPlus in case of a Python error stop and print the error to the stderr or as an alternative, let Python stop EnergyPlus? EnergyPlus print the error message to stderr and stop?
Thanks for any help here
Python API error handling (to stderr)
Hi,
I am working with the Python API 0.2 and EnergyPlus 22.1.0.
I need to do some value checking (if values are finite) inside of my callback functions. What I noticed is, that (a) ValueErrors in Python code do not get recognized during a run (nor after one), (2) the stderr does not print them either, and (3) the api.runtime.issue_severe() does not stop EnergyPlus or prints the error message to stderr.
Is there any way to let EnergyPlus in case of a Python error stop and print the error to the stderr or as an alternative, let EnergyPlus print the error message to stderr and stop?
Thanks for any help here
Python API error handling (to stderr)
Hi,
I am working with the Python API 0.2 and EnergyPlus 22.1.0.
I need to do some value checking (if values are finite) inside of my callback functions. What I noticed is, that (a) ValueErrors in Python code do not get recognized during a run (nor after one), (2) the stderr does not print them either, and (3) the api.runtime.issue_severe() does not stop EnergyPlus or prints the error message to stderr.
Is there any way to let EnergyPlus in case of a Python error stop and print the error to the stderr or as an alternative, let EnergyPlus print the error message to stderr and stop?
Thanks for any help here