From af124c07558ecb53beef94e2707d2e7cb6792c00 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Tue, 14 Mar 2023 10:12:54 +0100 Subject: [PATCH] simplify code Signed-off-by: Csaba Kiraly --- DAS/observer.py | 8 -------- DAS/simulator.py | 1 - 2 files changed, 9 deletions(-) diff --git a/DAS/observer.py b/DAS/observer.py index ee0604b..88fc8c4 100644 --- a/DAS/observer.py +++ b/DAS/observer.py @@ -10,14 +10,6 @@ class Observer: self.config = config self.format = {"entity": "Observer"} self.logger = logger - self.block = [] - self.rows = [] - self.columns = [] - self.broadcasted = [] - - - def reset(self): - """It resets all the gathered data to zeros.""" self.block = [0] * self.config.blockSize * self.config.blockSize self.rows = [0] * self.config.blockSize self.columns = [0] * self.config.blockSize diff --git a/DAS/simulator.py b/DAS/simulator.py index 900609c..bb27a8a 100644 --- a/DAS/simulator.py +++ b/DAS/simulator.py @@ -27,7 +27,6 @@ class Simulator: def initValidators(self): """It initializes all the validators in the network.""" self.glob = Observer(self.logger, self.shape) - self.glob.reset() self.validators = [] if self.config.evenLineDistribution: