Skip to content

Commit

Permalink
Debug: Fix missing param in kirchhoff static methods
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Weiss <[email protected]>
  • Loading branch information
DEUCE1957 committed Dec 2, 2024
1 parent 9adc3a4 commit 42535de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions grid2op/Backend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1567,10 +1567,10 @@ def check_kirchhoff(self) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarra
# for example, if two powerlines are such that line_or_to_subid is equal (eg both connected to substation 0)
# then numpy do not guarantee that `p_subs[self.line_or_to_subid] += p_or` will add the two "corresponding p_or"
# TODO this can be vectorized with matrix product, see example in obs.flow_bus_matrix (BaseObervation.py)
info = Backend._check_kirchhoff_lines(info)
info = Backend._check_kirchhoff_gens(info)
info = Backend._check_kirchhoff_loads(info)
info = Backend._check_kirchhoff_storage(info)
info = Backend._check_kirchhoff_lines(cls, info)
info = Backend._check_kirchhoff_gens(cls, info)
info = Backend._check_kirchhoff_loads(cls, info)
info = Backend._check_kirchhoff_storage(cls, info)
if cls.shunts_data_available:
info = Backend._check_kirchhoff_shunt(info)
diff_v_bus = np.zeros((cls.n_sub, cls.n_busbar_per_sub), dtype=dt_float)
Expand Down

0 comments on commit 42535de

Please sign in to comment.