use SparseBlock to store segments in nodes

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2023-03-27 23:36:30 +02:00
parent 8122290f37
commit 0f4e59ce7f
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,6 @@ class Validator:
FORMAT = "%(levelname)s : %(entity)s : %(message)s"
self.ID = ID
self.format = {"entity": "Val "+str(self.ID)}
self.block = Block(self.shape.blockSize)
self.receivedBlock = Block(self.shape.blockSize)
self.receivedQueue = deque()
self.sendQueue = deque()
self.activeSendQueues = set()
@ -80,6 +78,8 @@ class Validator:
self.columnIDs = columns if columns else unionOfSamples(range(self.shape.blockSize), self.shape.chi, self.vpn)
self.rowNeighbors = collections.defaultdict(dict)
self.columnNeighbors = collections.defaultdict(dict)
self.block = SparseBlock(shape.blockSize, self.rowIDs, self.columnIDs)
self.receivedBlock = SparseBlock(shape.blockSize, self.rowIDs, self.columnIDs)
#statistics
self.statsTxInSlot = 0