diff --git a/axelrod/match_generator.py b/axelrod/match_generator.py index 4da7cb6d6..0192d035e 100644 --- a/axelrod/match_generator.py +++ b/axelrod/match_generator.py @@ -216,12 +216,13 @@ class SpatialMatches(RoundRobinMatches): A list of tuples containing the existing edges """ - def __init__(self, players, turns, game, repetitions, edges): + def __init__(self, players, turns, game, repetitions, edges, noise=0): if not graph_is_connected(edges, players): raise ValueError("The graph edges do not include all players.") self.edges = edges - super(SpatialMatches, self).__init__(players, turns, game, repetitions) + super(SpatialMatches, self).__init__(players, turns, game, repetitions, + noise) def build_match_chunks(self): for edge in self.edges: diff --git a/axelrod/tournament.py b/axelrod/tournament.py index 2cfcb7573..5680e2315 100644 --- a/axelrod/tournament.py +++ b/axelrod/tournament.py @@ -380,7 +380,7 @@ def __init__(self, players, edges, match_generator=SpatialMatches, self.edges = edges self.match_generator = SpatialMatches( - players, turns, self.game, repetitions, edges) + players, turns, self.game, repetitions, edges, noise) class ProbEndSpatialTournament(ProbEndTournament):