Skip to content

Commit

Permalink
still debug windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed Jul 23, 2024
1 parent 3c1b0f0 commit 1cde51f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lightsim2grid/lightSimBackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ def runpf(self, is_dc : bool=False) -> Tuple[bool, Union[Exception, None]]:
self.V[:] = 1. # self._grid.get_init_vm_pu() # see issue 30
# apparently pandapower run a "real" dc powerflow with vm_pu = 1
# when it initialize the AC powerflow,
print(f"\tLightSimBackend: {self.V.shape = }")
print(f"\tLightSimBackend: self.V.shape = {self.V.shape}")
self._debug_Vdc = self._grid.dc_pf(copy.deepcopy(self.V), self.max_it, self.tol)
self._grid.reactivate_result_computation()
if self._debug_Vdc.shape[0] == 0:
Expand Down
2 changes: 2 additions & 0 deletions lightsim2grid/tests/test_n1contingencyrewards.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ def _aux_test_reward(self, obs, reward):
sim_obs, sim_r, sim_d, sim_i = obs.simulate(self.env.action_space(), time_step=0)
# print(f"without contingency: {sim_d = }, {sim_i['exception']}")
print(f"without contingency: {sim_d = }, {sim_i}")
assert not sim_d # TODO DEBUG WINDOWS
return # TODO DEBUG WINDOWS
# print("test:")
for l_id in self.my_ids:
sim_obs, sim_r, sim_d, sim_i = obs.simulate(self.env.action_space({"set_line_status": [(l_id, -1)]}),
Expand Down
2 changes: 1 addition & 1 deletion src/linear_solvers/SparseLUSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ErrorType SparseLULinearSolver::solve(const Eigen::SparseMatrix<real_type> & J,
}
if(!stop){
RealVect Va = solver_.solve(b);
std::cout << "\tSparseLUSolver.cpp: solver_.info: " << solver_.info() << std::endl;
std::cout << "\tSparseLUSolver.cpp: solver_.info: " << solver_.info() << std::endl; // TODO DEBUG WINDOWS
if (solver_.info() != Eigen::Success) {
err = ErrorType::SolverSolve;
}
Expand Down

0 comments on commit 1cde51f

Please sign in to comment.