Skip to content

Commit

Permalink
FuseRunner: compression: use object attribute
Browse files Browse the repository at this point in the history
This allows the compression level to be overridden
  • Loading branch information
gmazzamuto committed Jun 9, 2022
1 parent 7423e6e commit e648033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zetastitcher/fuse/fuse_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, file_matrix):
self.downsample_xy = None
self.output_filename = None
self.channel = -1
self.compression = 0
self.compression = 'zlib'

self._is_multichannel = None

Expand Down Expand Up @@ -106,6 +106,6 @@ def run(self):
fused = np.moveaxis(fused, -3, -1)

logger.info('saving output to {}'.format(self.output_filename))
tiff.imwrite(self.output_filename, fused, append=True, bigtiff=bigtiff, compression='zlib')
tiff.imwrite(self.output_filename, fused, append=True, bigtiff=bigtiff, compression=self.compression)

self.zmin += thickness

0 comments on commit e648033

Please sign in to comment.