From f93e5df2114a1464d87feb919a6f6bb769177e26 Mon Sep 17 00:00:00 2001 From: James Campbell Date: Sun, 4 Dec 2016 15:40:41 +0000 Subject: [PATCH] Fix docs to remove any mention of Dual of Strategy --- axelrod/fingerprint.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/axelrod/fingerprint.py b/axelrod/fingerprint.py index 9e54eebf6..682dc3f43 100644 --- a/axelrod/fingerprint.py +++ b/axelrod/fingerprint.py @@ -92,8 +92,7 @@ def create_edges(points): edges : list of tuples A list containing tuples of length 2. All tuples will have 0 as the first element. The second element is the index of the - corresponding probe (+1 to allow for including the Strategy and its - Dual). + corresponding probe (+1 to allow for including the Strategy). """ edges = [(0, index + 1) for index, point in enumerate(points)] return edges @@ -134,12 +133,11 @@ def construct_tournament_elements(self, step): edges : list of tuples A list containing tuples of length 2. All tuples will have either 0 or 1 as the first element. The second element is the index of the - corresponding probe (+2 to allow for including the Strategy and its - Dual). + corresponding probe (+1 to allow for including the Strategy). tournament_players : list A list containing instances of axelrod.Player. The first item is the - original player, the second is the dual, the rest are the probes. + original player, the rest are the probes. """ probe_points = create_points(step) @@ -168,8 +166,7 @@ def generate_data(interactions, points, edges): edges : list of tuples A list containing tuples of length 2. All tuples will have either 0 or 1 as the first element. The second element is the index of the - corresponding probe (+2 to allow for including the Strategy and its - Dual). + corresponding probe (+1 to allow for including the Strategy). Returns ---------- @@ -186,10 +183,11 @@ def fingerprint(self, turns=50, repetitions=10, step=0.01, processes=None, filename=None, in_memory=False, progress_bar=True): """Build and play the spatial tournament. - Creates the probes and their edges then builds a spatial tournament - where the original strategy only plays probes whose coordinates sum to - less than 1 (or equal). Probes whose coordinates sum to more than 1 play - the Dual Strategy. + Creates the probes and their edges then builds a spatial tournament. + When the coordinates of the probe sum to more than 1, the dual of the + probe is taken instead and then the Joss-Ann Transformer is applied. If + the coordinates sum to less than 1 (or equal), then only the Joss-Ann is + applied, a dual is not required. Parameters ----------