Merge pull request #2561 from dov/fix-lut-size

Fix wrong expected size of MRLs read from disk
This commit is contained in:
Hugo 2017-05-30 17:53:29 +03:00 committed by GitHub
commit f3cce369dd

View File

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