Skip to content

Commit

Permalink
Revert some test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbowly committed Oct 24, 2024
1 parent 3191a4b commit 7cc5000
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions tests/opf/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,12 @@ def read_write_and_read_case(self, file_path):

return (original, reread)

@unittest.skip("bad test due to nan on missing entries")
def test_read_case_matpower(self):
# Check that all example cases are read without errors

case_mat_files = [
self.dataset_dir.joinpath(f"pglib_opf_case{case}.mat")
for case in ["3_lmbd", "5_pjm", "14_ieee"]
self.dataset_dir.joinpath(f"case{case}.mat")
for case in ["9", "14", "57", "118", "300", "NY"]
]

for file_path in case_mat_files:
Expand Down
4 changes: 2 additions & 2 deletions tests/opf/test_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ class TestComputeVoltageAnglesBug(unittest.TestCase):
# structure) causes compute_voltage_angles to fail.

def setUp(self):
self.case = load_opf_example("pglib_opf_case5_pjm")
reorder = [2, 1, 3, 4, 0]
self.case = load_opf_example("case9")
reorder = [8, 2, 5, 7, 6, 1, 3, 4, 0]
self.case["bus"] = [self.case["bus"][ind] for ind in reorder]

def assert_approx_equal(self, value, expected, tol):
Expand Down

0 comments on commit 7cc5000

Please sign in to comment.