Skip to content

Commit

Permalink
fixing a broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed Sep 18, 2023
1 parent 2f85eff commit eac1e8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grid2op/Space/GridObjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -4278,10 +4278,10 @@ def format_el(values):
alertable_line_ids_str = '[]' if cls.dim_alerts == 0 else tmp_

detailed_topo_desc_str = "None" # TODO detailed topo
if cls.detailed_topo_desc_str is not None:
if cls.detailed_topo_desc is not None:
import json
tmp_dtds = {}
cls.detailed_topo_desc_str.save_to_dict(tmp_dtds)
cls.detailed_topo_desc.save_to_dict(tmp_dtds)
tmp_dtds_str = json.dumps(tmp_dtds, separators=(',', ':'))
detailed_topo_desc_str = f"DetailedTopoDescription.from_dict({tmp_dtds_str})"

Expand Down
1 change: 1 addition & 0 deletions grid2op/tests/test_detailed_topo.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def test_compute_switches_position(self):

# TODO test no shunt too
# TODO implement and test compute_switches_position !!!
# TODO test "_get_full_cls_str"(experimental_read_from_local_dir)

if __name__ == "__main__":
unittest.main()
Expand Down

0 comments on commit eac1e8c

Please sign in to comment.