Skip to content

Commit 17591f6

Browse files
Nikoleta GlynatsiNikoleta Glynatsi
authored andcommitted
remove float from memory one
while working on the memory two strategies we observed that when creating the transition rates dict of the strategy there as a float argument. This argument seems to have been left there by previous versions.
1 parent cf65f33 commit 17591f6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

axelrod/strategies/memoryone.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ def set_four_vector(self, four_vector: Tuple[float, float, float, float]):
8282
raise ValueError("An element in the probability vector, {}, is not "
8383
"between 0 and 1.".format(str(four_vector)))
8484

85-
self._four_vector = dict(zip([(C, C), (C, D), (D, C), (D, D)],
86-
map(float, four_vector)))
85+
self._four_vector = dict(zip([(C, C), (C, D), (D, C), (D, D)], four_vector))
8786
self.classifier['stochastic'] = any(0 < x < 1 for x in set(four_vector))
8887

8988
def strategy(self, opponent: Player) -> Action:

0 commit comments

Comments
 (0)