simplify code

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2023-03-14 10:12:54 +01:00
parent 952d191ccd
commit af124c0755
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
2 changed files with 0 additions and 9 deletions

View File

@ -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

View File

@ -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: