Merge pull request #86 from radarhere/cleanup-names

Cleanup: adjust names
This commit is contained in:
Hugo van Kemenade 2022-04-16 17:13:10 +03:00 committed by GitHub
commit 967c875e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -421,8 +421,8 @@ class Color3DLUT(MultibandFilter):
except TypeError:
size = (size, size, size)
size = [int(x) for x in size]
for size1D in size:
if not 2 <= size1D <= 65:
for size_1d in size:
if not 2 <= size_1d <= 65:
raise ValueError("Size should be in [2, 65] range.")
return size

View File

@ -182,7 +182,7 @@ def _save(im, fp, filename):
fp.write(struct.pack(">l", pinmax))
fp.write(struct.pack("4s", b"")) # dummy
fp.write(struct.pack("79s", img_name)) # truncates to 79 chars
fp.write(struct.pack("s", b"")) # force null byte after imgname
fp.write(struct.pack("s", b"")) # force null byte after img_name
fp.write(struct.pack(">l", colormap))
fp.write(struct.pack("404s", b"")) # dummy