simplify code

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2022-12-07 18:44:02 +01:00
parent 4179841c89
commit accbc3eff9
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
1 changed files with 1 additions and 2 deletions

View File

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