mirror of
https://github.com/status-im/das-research.git
synced 2025-02-22 03:18:08 +00:00
fixup: fix missing 'order' in failureModel == "sequential"
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
3c0898c925
commit
cec9b9f6a7
@ -128,6 +128,7 @@ class Validator:
|
||||
for i in order:
|
||||
self.block.data[i] = 1
|
||||
elif self.shape.failureModel == "sequential":
|
||||
order = [i for i in range(self.shape.blockSize * self.shape.blockSize)]
|
||||
order = order[:int((1 - self.shape.failureRate/100) * len(order))]
|
||||
for i in order:
|
||||
self.block.data[i] = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user