Skip to content

Commit

Permalink
Debug: Temporarily Rollback HotFix to PandaPowerBackend
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Weiss <[email protected]>
  • Loading branch information
DEUCE1957 committed Nov 27, 2024
1 parent d2d71ba commit 809dfe4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions grid2op/Backend/pandaPowerBackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1085,9 +1085,8 @@ def runpf(self, is_dc : bool=False) -> Tuple[bool, Union[Exception, None]]:
self.load_theta[:],
) = self._loads_info()

load_in_service = self._grid.load["in_service"]
if not is_dc:
if not np.isfinite(self.load_v[load_in_service]).all():
if not np.isfinite(self.load_v).all():
# TODO see if there is a better way here
# some loads are disconnected: it's a game over case!
raise pp.powerflow.LoadflowNotConverged(f"Isolated load: check loads {np.isfinite(self.load_v).nonzero()[0]}")
Expand Down

0 comments on commit 809dfe4

Please sign in to comment.