simplify code
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
4179841c89
commit
accbc3eff9
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue