- newest tifffile requires keyword arguments
This commit is contained in:
2
setup.py
2
setup.py
@@ -5,7 +5,7 @@ with open('README.md', 'r') as fh:
|
||||
|
||||
setuptools.setup(
|
||||
name='tiffwrite',
|
||||
version='2022.5.3',
|
||||
version='2022.5.4',
|
||||
author='Wim Pomp @ Lenstra lab NKI',
|
||||
author_email='w.pomp@nki.nl',
|
||||
description='Parallel tiff writer compatible with ImageJ.',
|
||||
|
||||
@@ -378,7 +378,7 @@ class IJTiffFile:
|
||||
|
||||
def ij_tiff_frame(self, frame):
|
||||
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
|
||||
t.write(frame, compression=(8, 9), contiguous=True, predictor=False)
|
||||
return framedata.getvalue()
|
||||
|
||||
Reference in New Issue
Block a user