From b36f558c882f0b555e4ed2a600626ee9ae7b9168 Mon Sep 17 00:00:00 2001 From: srdm Date: Thu, 7 Nov 2024 11:21:52 +0100 Subject: [PATCH] -define logger --- src/pandapipes/component_models/heat_consumer_component.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pandapipes/component_models/heat_consumer_component.py b/src/pandapipes/component_models/heat_consumer_component.py index b17f3fd4..394aea5e 100644 --- a/src/pandapipes/component_models/heat_consumer_component.py +++ b/src/pandapipes/component_models/heat_consumer_component.py @@ -17,6 +17,12 @@ from pandapipes.pf.result_extraction import extract_branch_results_without_internals from pandapipes.properties.properties_toolbox import get_branch_cp +try: + import pandaplan.core.pplog as logging +except ImportError: + import logging + +logger = logging.getLogger(__name__) class HeatConsumer(BranchWZeroLengthComponent): """