From c09bba61bc5d98503df4981c80d8131379e191b3 Mon Sep 17 00:00:00 2001 From: Wim Pomp Date: Thu, 19 May 2022 16:12:56 +0200 Subject: [PATCH] - newest tifffile requires keyword arguments --- setup.py | 2 +- tiffwrite/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 17b2997..4776fc7 100644 --- a/setup.py +++ b/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.', diff --git a/tiffwrite/__init__.py b/tiffwrite/__init__.py index 8ce037b..f0ef759 100755 --- a/tiffwrite/__init__.py +++ b/tiffwrite/__init__.py @@ -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()