From bd6896185c3681489d615aa2ccb1cfb451ceb4bb Mon Sep 17 00:00:00 2001 From: ClaraBuettner Date: Fri, 1 Mar 2024 11:58:26 +0100 Subject: [PATCH] Allow disabeling dynamic line rating via args --- etrago/appl.py | 3 ++- etrago/tools/network.py | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/etrago/appl.py b/etrago/appl.py index 1099fd71..d659c56a 100644 --- a/etrago/appl.py +++ b/etrago/appl.py @@ -163,7 +163,8 @@ "capacity": "osmTGmod", # 'osmTGmod', 'tyndp2020', 'ntc_acer' or 'thermal_acer' }, "comments": None, - "home_battery_self_consumption": "results_self_consumption_opt" # False or path/to/results + "home_battery_self_consumption": "results_self_consumption_opt", # False or path/to/results + "dynamic_line_rating": False, # Stae if Dynamic line ration is considered } diff --git a/etrago/tools/network.py b/etrago/tools/network.py index 25593736..a3ade89c 100644 --- a/etrago/tools/network.py +++ b/etrago/tools/network.py @@ -364,6 +364,12 @@ def build_network_from_db(self): import_home_battery_self_consumption_optimization(self) logger.info( "Imported results from home battery self consumption optimization") + + if not self.args["dynamic_line_rating"]: + self.network.lines_t.s_max_pu = pd.DataFrame( + index=self.network.snapshots) + logger.info( + "Dropped dynamic line rating.") def adjust_network(self): """