From 541e267a838ff74fa29516597b6301e3200effab Mon Sep 17 00:00:00 2001 From: lisazeyen Date: Wed, 15 May 2024 15:00:42 +0200 Subject: [PATCH] replace print with logger.info --- scripts/prepare_sector_network.py | 2 +- scripts/solve_network.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index f5eecf3d..f6f41876 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -3323,7 +3323,7 @@ def remove_h2_network(n): def remove_solar_tracking(n): for tech in ["solar-hsat"]: - print("removing " + tech) + logger.info("removing " + tech) n.mremove("Generator", n.generators.index[n.generators.carrier == tech]) diff --git a/scripts/solve_network.py b/scripts/solve_network.py index 665274b7..b0cef3ca 100644 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -292,7 +292,7 @@ def add_solar_potential_constraints(n, config): .sum() ) - print("adding solar rooftop constraints...") + logger.info("Adding solar potential constraint.") n.model.add_constraints(lhs <= rhs, name="solar_potential")