Skip to content

Commit

Permalink
silencing another warnings see #81
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed Apr 8, 2024
1 parent 61ce186 commit 0b26656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightsim2grid/newtonpf/newtonpf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _get_valid_solver(options, Ybus):
else:
solver = KLUSolverSingleSlack() if KLU_solver_available else SparseLUSolverSingleSlack()

if ~sparse.isspmatrix_csc(Ybus):
if not sparse.isspmatrix_csc(Ybus):
Ybus = sparse.csc_matrix(Ybus)

if not Ybus.has_canonical_format:
Expand Down

0 comments on commit 0b26656

Please sign in to comment.