@@ -64,8 +64,9 @@ def create_jossann(point: Point, probe: Any) -> Player:
64
64
Parameters
65
65
----------
66
66
point : Point
67
- probe : class
68
- A class that must be descended from axelrod.strategies
67
+ probe : class or instance
68
+ A class that must be descended from axelrod.Player or an instance of
69
+ axelrod.Player.
69
70
70
71
Returns
71
72
----------
@@ -97,8 +98,9 @@ def create_probes(probe: Union[type, Player], points: list,
97
98
98
99
Parameters
99
100
----------
100
- probe : class
101
- A class that must be descended from axelrod.strategies.
101
+ probe : class or instance
102
+ A class that must be descended from axelrod.Player or an instance of
103
+ axelrod.Player.
102
104
points : list
103
105
of Point objects with coordinates (x, y)
104
106
progress_bar : bool
@@ -204,7 +206,7 @@ def reshape_data(data: dict, points: list, size: int) -> np.ndarray:
204
206
return plotting_data
205
207
206
208
207
- class AshlockFingerprint ():
209
+ class AshlockFingerprint (object ):
208
210
def __init__ (self , strategy : Union [type , Player ],
209
211
probe : Union [type , Player ]= axl .TitForTat ) -> None :
210
212
"""
@@ -282,6 +284,12 @@ def fingerprint(
282
284
produce more Points that will be closer together.
283
285
processes : integer, optional
284
286
The number of processes to be used for parallel processing
287
+ filename: string, optional
288
+ The name of the file for self.spatial_tournament's interactions.
289
+ if None and in_memory=False, will auto-generate a filename.
290
+ in_memory: bool
291
+ Whether self.spatial_tournament keeps interactions_dict in memory or
292
+ in a file.
285
293
progress_bar : bool
286
294
Whether or not to create a progress bar which will be updated
287
295
0 commit comments