observer: fix row/column count test
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
e8c27531bd
commit
dc00073246
|
@ -28,9 +28,13 @@ class Observer:
|
|||
self.columns[c] += 1
|
||||
|
||||
for i in range(self.config.blockSizeC):
|
||||
self.logger.debug("Row/Column %d have %d and %d validators assigned." % (i, self.rows[i], self.columns[i]), extra=self.format)
|
||||
if self.rows[i] == 0 or self.columns[i] == 0:
|
||||
self.logger.warning("There is a row/column that has not been assigned", extra=self.format)
|
||||
self.logger.debug("Row %d have %d validators assigned." % (i, self.rows[i]), extra=self.format)
|
||||
if self.rows[i] == 0:
|
||||
self.logger.warning("There is a row that has not been assigned", extra=self.format)
|
||||
for i in range(self.config.blockSizeR):
|
||||
self.logger.debug("Column %d have %d validators assigned." % (i, self.columns[i]), extra=self.format)
|
||||
if self.columns[i] == 0:
|
||||
self.logger.warning("There is a column that has not been assigned", extra=self.format)
|
||||
|
||||
def checkBroadcasted(self):
|
||||
"""It checks how many broadcasted samples are still missing in the network."""
|
||||
|
|
Loading…
Reference in New Issue