Skip to content

Commit

Permalink
omewriter: use TiffWriter.write instead of deprecated save
Browse files Browse the repository at this point in the history
  • Loading branch information
filippocastelli committed Feb 3, 2024
1 parent 982af7e commit 924d095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyometiff/omewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def write_stack(self, array, xml_meta):
logging.warning("array size is larger than 4GB, using BigTIFF")

with tifffile.TiffWriter(str(self.fpath), bigtiff=use_bigtiff) as tif:
tif.save(
tif.write(
array, description=xml_meta, photometric=self.photometric, metadata=None, compression=self.compression
)

Expand Down

0 comments on commit 924d095

Please sign in to comment.