From accbc3eff99c558bd144f65d45148e30c3e6f7b0 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Wed, 7 Dec 2022 18:44:02 +0100 Subject: [PATCH] simplify code Signed-off-by: Csaba Kiraly --- DAS/block.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DAS/block.py b/DAS/block.py index 3119167..0ec24a4 100644 --- a/DAS/block.py +++ b/DAS/block.py @@ -14,8 +14,7 @@ class Block: self.data = zeros(self.blockSize*self.blockSize) def fill(self): - for i in range(self.blockSize*self.blockSize): - self.data[i] = 1 + self.data.setall(1) def getColumn(self, columnID): return self.data[columnID::self.blockSize]