From a26bf637d4cd17e187d7d1aafe9aa22b1aa9ad05 Mon Sep 17 00:00:00 2001 From: Tasio Mendez Date: Thu, 3 May 2018 19:02:30 +0200 Subject: [PATCH] mend --- TerroristNetworkModel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TerroristNetworkModel.py b/TerroristNetworkModel.py index 53282aa..9290ae6 100644 --- a/TerroristNetworkModel.py +++ b/TerroristNetworkModel.py @@ -195,7 +195,7 @@ class HavenModel(BaseAgent): self.state['id'] = 0 # Civilian Haven for neighbour in self.get_neighboring_agents(): if isinstance(neighbour, TerroristSpreadModel) and neighbour.vulnerability > self.min_vulnerability: - neighbour.vulnerability = neighbour.vulnerability * ( 1 - self.training_influence ) + neighbour.vulnerability = neighbour.vulnerability * ( 1 - self.haven_influence ) class TerroristNetworkModel(TerroristSpreadModel):