First time here? Check out the Help page!
1 | initial version |
Use the callback_error()
in the Functional API: https://nrel.github.io/EnergyPlus/api/python/func.html#func.Functional.callback_error
Try this:
def error_handler(severity: int, message: bytes) -> None:
print(f"{severity=}: {message}")
api.functional.callback_error(state, error_handler)