Skip to content

Commit

Permalink
Fix format.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuihantao committed Mar 21, 2024
1 parent 4f991fc commit 127dc46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion andes/models/line/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def build_Bpp(self, method='fdpf'):
def build_Bdc(self):
"""
The MATPOWER-flavor Bdc matrix for DC power flow. Saves results to `self.Bdc`.
The method neglects line charging and line resistance. It retains tap ratio.
Returns
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pflow_matpower.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ def test_Bdc_against_matpower(self):

ss.Line.build_Bdc()
Bp = spmatrix_to_csc(ss.Line.Bdc)

np.testing.assert_array_almost_equal((Bp + Bdc).data, np.zeros_like((Bp + Bdc).data))

0 comments on commit 127dc46

Please sign in to comment.