Skip to content

Commit

Permalink
Add consistency_check
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Sep 27, 2023
1 parent 298edda commit 4b8e450
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etrago/execute/grid_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4b8e450

Please sign in to comment.