From 4b8e45028ae416dc179d83fe0fd816c2acc7c861 Mon Sep 17 00:00:00 2001 From: ClaraBuettner Date: Wed, 27 Sep 2023 12:30:50 +0200 Subject: [PATCH] Add consistency_check --- etrago/execute/grid_optimization.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etrago/execute/grid_optimization.py b/etrago/execute/grid_optimization.py index ca5dcbd1..70439c86 100644 --- a/etrago/execute/grid_optimization.py +++ b/etrago/execute/grid_optimization.py @@ -246,6 +246,9 @@ def add_redispatch_generators(self): -(self.market_model.links_t.p0.loc[:, links_redispatch]) ).values + # Check if the network contains any problems + self.network.consistency_check() + # just for the current status2019 scenario a quick fix for buses which do not have a connection #self.network.buses.drop(self.network.buses[self.network.buses.index.isin(['47085', '47086', '37865', '37870'])].index, inplace=True)