Commit fc1881ae authored by Nicolas Vuaille's avatar Nicolas Vuaille

Write image in wb mode

parent 8f45488a
......@@ -346,7 +346,7 @@ class RasterWrangler(object):
# Adjust the filename, replace .im with .npz
baseName, ext = os.path.splitext(fname)
adjustedName = baseName + ".Z"
with open(adjustedName, mode='w') as file:
with open(adjustedName, mode='wb') as file:
def assertvalidimage(self, filename):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment