Skip to content

Commit

Permalink
fix broken tests: KLU not compiled in the windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed Dec 8, 2023
1 parent 2ad2c9d commit 835df5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lightsim2grid/tests/test_ptdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ def setUp(self) -> None:
warnings.filterwarnings("ignore")
self.gridmodel = init(self.case)
self.V_init = 1. * self.gridmodel.get_bus_vn_kv()
self.gridmodel.change_solver(self.get_solver_type())
solver_type = self.get_solver_type()
if solver_type not in self.gridmodel.available_solvers():
self.skipTest("Solver type not supported on this platform")
self.gridmodel.change_solver(solver_type)
self.gridmodel.dc_pf(self.V_init, 1, 1e-8)
self.dcYbus = 1.0 * self.gridmodel.get_dcYbus()
self.dcSbus = 1.0 * self.gridmodel.get_dcSbus().real
Expand Down

0 comments on commit 835df5a

Please sign in to comment.