Skip to content

Commit 771635a

Browse files
committed
removed player_names property as it caused conflicts
1 parent f076ee4 commit 771635a

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

shapiq/games/base.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,6 @@ def is_normalized(self) -> bool:
163163
"""Checks if the game is normalized/centered."""
164164
return self(self.empty_coalition) == 0
165165

166-
@property
167-
def player_names(self) -> dict[int, str]:
168-
"""Return the player names as lookup table."""
169-
return self.player_name_lookup
170-
171166
def _check_coalitions(
172167
self, coalitions: np.ndarray | list[tuple[int] | tuple[str]] | tuple[int | str] | str
173168
) -> np.ndarray:

tests/tests_games/test_base_game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def value_function(self, coalition):
3030
)
3131

3232
# assert that player names are correctly stored
33-
assert test_game.player_names == {
33+
assert test_game.player_name_lookup == {
3434
"Alice": 0,
3535
"Bob": 1,
3636
"Charlie": 2,

0 commit comments

Comments
 (0)