diff --git a/suitcase/tiff_series/__init__.py b/suitcase/tiff_series/__init__.py index e1b8e61..c868bc7 100644 --- a/suitcase/tiff_series/__init__.py +++ b/suitcase/tiff_series/__init__.py @@ -280,7 +280,7 @@ def event(self, doc): Path(fname).parent.mkdir(parents=True, exist_ok=True) tw = TiffWriter(fname, **self._init_kwargs) self._tiff_writers[stream_name][field+f'-{num}'] = tw - tw.write(img_asarray_2d, *self._kwargs) + tw.write(img_asarray_2d, **self._kwargs) def get_prefixed_filename( diff --git a/suitcase/tiff_stack/__init__.py b/suitcase/tiff_stack/__init__.py index 5a8529c..fbf329c 100644 --- a/suitcase/tiff_stack/__init__.py +++ b/suitcase/tiff_stack/__init__.py @@ -300,7 +300,7 @@ def event_page(self, doc): img_asarray_2d = img_asarray[i, :] # append the image to the file tw = self._tiff_writers[stream_name][field] - tw.write(img_asarray_2d, contiguous=True, *self._kwargs) + tw.write(img_asarray_2d, contiguous=True, **self._kwargs) def stop(self, doc): self.close()