Skip to content

Commit 2b80d6b

Browse files
style: pre-commit fixes
1 parent ec5d05f commit 2b80d6b

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

tests/unit/test_solvers/test_idaklu_solver.py

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -496,24 +496,28 @@ def test_options(self):
496496
}
497497
solver = pybamm.IDAKLUSolver(options=options)
498498
if (
499-
jacobian == "none" and (
500-
linear_solver == "SUNLinSol_Dense" or
501-
linear_solver == "SUNLinSol_LapackDense"
502-
) or
503-
jacobian == "dense" and (
504-
linear_solver == "SUNLinSol_Dense" or
505-
linear_solver == "SUNLinSol_LapackDense"
506-
) or
507-
jacobian == "sparse" and (
508-
linear_solver != "SUNLinSol_Dense" and
509-
linear_solver != "SUNLinSol_LapackDense" and
510-
linear_solver != "garbage"
511-
) or
512-
jacobian == "matrix-free" and (
513-
linear_solver != "SUNLinSol_KLU" and
514-
linear_solver != "SUNLinSol_Dense" and
515-
linear_solver != "SUNLinSol_LapackDense" and
516-
linear_solver != "garbage"
499+
jacobian == "none"
500+
and (
501+
linear_solver == "SUNLinSol_Dense"
502+
or linear_solver == "SUNLinSol_LapackDense"
503+
)
504+
or jacobian == "dense"
505+
and (
506+
linear_solver == "SUNLinSol_Dense"
507+
or linear_solver == "SUNLinSol_LapackDense"
508+
)
509+
or jacobian == "sparse"
510+
and (
511+
linear_solver != "SUNLinSol_Dense"
512+
and linear_solver != "SUNLinSol_LapackDense"
513+
and linear_solver != "garbage"
514+
)
515+
or jacobian == "matrix-free"
516+
and (
517+
linear_solver != "SUNLinSol_KLU"
518+
and linear_solver != "SUNLinSol_Dense"
519+
and linear_solver != "SUNLinSol_LapackDense"
520+
and linear_solver != "garbage"
517521
)
518522
):
519523
works = True

0 commit comments

Comments
 (0)