Skip to content

Commit

Permalink
fix tifffile deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeul committed Jun 18, 2024
1 parent 1b9f072 commit 16ded4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bfio/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def _init_writer(self):

offsetsize = self._writer.tiff.offsetsize

self._compresstag = tifffile.TIFF.COMPRESSION.ADOBE_DEFLATE
self._compresstag = tifffile.COMPRESSION.ADOBE_DEFLATE

# normalize data shape to 5D or 6D, depending on volume:
# (pages, planar_samples, height, width, contig_samples)
Expand Down Expand Up @@ -675,7 +675,7 @@ def rational(arg, max_denominator=1000000):
self._addtag(258, "H", 1, self._bitspersample)

# PhotometricInterpretation
self._addtag(262, "H", 1, tifffile.TIFF.PHOTOMETRIC.MINISBLACK.value)
self._addtag(262, "H", 1, tifffile.PHOTOMETRIC.MINISBLACK.value)

if self.frontend.physical_size_x[0] is not None:
self._addtag(
Expand Down

0 comments on commit 16ded4f

Please sign in to comment.