Skip to content

Commit 986c294

Browse files
drvinceknightmarcharper
authored andcommitted
Run isort and black.
1 parent f1f838d commit 986c294

File tree

2 files changed

+21
-20
lines changed

2 files changed

+21
-20
lines changed

axelrod/fingerprint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
)
1616
from axelrod.strategy_transformers import DualTransformer, JossAnnTransformer
1717
from mpl_toolkits.axes_grid1 import make_axes_locatable
18-
1918
from numpy.typing import ArrayLike
2019

2120
Point = namedtuple("Point", "x y")

axelrod/strategies/ann.py

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -91,25 +91,27 @@ def compute_features(player: Player, opponent: Player) -> np.ndarray:
9191
total_player_c = player.cooperations
9292
total_player_d = player.defections
9393

94-
return np.array((
95-
opponent_first_c,
96-
opponent_first_d,
97-
opponent_second_c,
98-
opponent_second_d,
99-
my_previous_c,
100-
my_previous_d,
101-
my_previous2_c,
102-
my_previous2_d,
103-
opponent_previous_c,
104-
opponent_previous_d,
105-
opponent_previous2_c,
106-
opponent_previous2_d,
107-
total_opponent_c,
108-
total_opponent_d,
109-
total_player_c,
110-
total_player_d,
111-
len(player.history),
112-
))
94+
return np.array(
95+
(
96+
opponent_first_c,
97+
opponent_first_d,
98+
opponent_second_c,
99+
opponent_second_d,
100+
my_previous_c,
101+
my_previous_d,
102+
my_previous2_c,
103+
my_previous2_d,
104+
opponent_previous_c,
105+
opponent_previous_d,
106+
opponent_previous2_c,
107+
opponent_previous2_d,
108+
total_opponent_c,
109+
total_opponent_d,
110+
total_player_c,
111+
total_player_d,
112+
len(player.history),
113+
)
114+
)
113115

114116

115117
def activate(

0 commit comments

Comments
 (0)