- newest tifffile requires keyword arguments

This commit is contained in:
Wim Pomp
2022-05-19 16:12:56 +02:00
parent d0a33de804
commit c09bba61bc
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ with open('README.md', 'r') as fh:
setuptools.setup( setuptools.setup(
name='tiffwrite', name='tiffwrite',
version='2022.5.3', version='2022.5.4',
author='Wim Pomp @ Lenstra lab NKI', author='Wim Pomp @ Lenstra lab NKI',
author_email='w.pomp@nki.nl', author_email='w.pomp@nki.nl',
description='Parallel tiff writer compatible with ImageJ.', description='Parallel tiff writer compatible with ImageJ.',

View File

@@ -378,7 +378,7 @@ class IJTiffFile:
def ij_tiff_frame(self, frame): def ij_tiff_frame(self, frame):
with BytesIO() as framedata: with BytesIO() as framedata:
with tifffile.TiffWriter(framedata, self.header.bigtiff, self.header.byteorder) as t: with tifffile.TiffWriter(framedata, bigtiff=self.header.bigtiff, byteorder=self.header.byteorder) as t:
# predictor=True might save a few bytes, but requires the package imagecodes to save floats # predictor=True might save a few bytes, but requires the package imagecodes to save floats
t.write(frame, compression=(8, 9), contiguous=True, predictor=False) t.write(frame, compression=(8, 9), contiguous=True, predictor=False)
return framedata.getvalue() return framedata.getvalue()