Fixed wrong expected size of luts read from disk.

This commit is contained in:
Dov Grobgeld 2017-05-30 16:34:41 +03:00
parent 241f437b60
commit 4d75070223

View File

@ -234,7 +234,7 @@ class MorphOp(object):
with open(filename, 'rb') as f:
self.lut = bytearray(f.read())
if len(self.lut) != 8192:
if len(self.lut) != LUT_SIZE:
self.lut = None
raise Exception('Wrong size operator file!')