|
5 | 5 | from abc import ABC, abstractmethod |
6 | 6 |
|
7 | 7 | import numpy as np |
8 | | -import pytest |
9 | 8 |
|
10 | 9 | import pygambit as gbt |
11 | 10 |
|
@@ -353,7 +352,6 @@ def create_3_player_with_internal_outcomes_efg(nonterm_outcomes: bool = False) - |
353 | 352 | o = g.add_outcome([0, 0, 0]) |
354 | 353 | g.set_outcome(g.root.children[0].children[0].children[1].children[0], o) |
355 | 354 | g.set_outcome(g.root.children[0].children[0].children[1].children[1], o) |
356 | | - # g.sort_infosets() |
357 | 355 | return g |
358 | 356 |
|
359 | 357 |
|
@@ -651,10 +649,6 @@ def create_kuhn_poker_efg(nonterm_outcomes: bool = False) -> gbt.Game: |
651 | 649 | g = _create_kuhn_poker_efg_nonterm_outcomes() |
652 | 650 | else: |
653 | 651 | g = _create_kuhn_poker_efg_only_term_outcomes() |
654 | | - |
655 | | - # Ensure infosets are in the same order as if game was written to efg and read back in |
656 | | - with pytest.warns(FutureWarning): |
657 | | - g.sort_infosets() |
658 | 652 | return g |
659 | 653 |
|
660 | 654 |
|
@@ -909,7 +903,6 @@ def create_STOC_simplified() -> gbt.Game: |
909 | 903 | g.root.children[1].children[1], |
910 | 904 | outcome=g.add_outcome(payoffs=[20, -20], label="d"), |
911 | 905 | ) |
912 | | - # g.sort_infosets() |
913 | 906 | return g |
914 | 907 |
|
915 | 908 |
|
@@ -949,7 +942,6 @@ def create_STOC_simplified2() -> gbt.Game: |
949 | 942 | g.root.children[1].children[0], |
950 | 943 | outcome=g.add_outcome(payoffs=[10, -10], label="c"), |
951 | 944 | ) |
952 | | - # g.sort_infosets() |
953 | 945 | return g |
954 | 946 |
|
955 | 947 |
|
@@ -1031,7 +1023,6 @@ def create_seq_form_STOC_paper_zero_sum_2_player_efg() -> gbt.Game: |
1031 | 1023 | g.root.children[0].children[1].infoset.label = "01" |
1032 | 1024 | g.root.children[2].children[0].infoset.label = "20" |
1033 | 1025 | g.root.children[0].children[1].children[0].infoset.label = "010" |
1034 | | - g.sort_infosets() |
1035 | 1026 | return g |
1036 | 1027 |
|
1037 | 1028 |
|
|
0 commit comments