- 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(
|
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.',
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user