Skip to content

Commit

Permalink
Allow disabeling dynamic line rating via args
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Mar 1, 2024
1 parent cdc2d78 commit bd68961
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etrago/appl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


Expand Down
6 changes: 6 additions & 0 deletions etrago/tools/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit bd68961

Please sign in to comment.