Skip to content
Snippets Groups Projects
Commit 3eed4e28 authored by Andrey  ARISTOV's avatar Andrey ARISTOV
Browse files

fix 8 bit flag

parent 4a093a70
No related branches found
No related tags found
No related merge requests found
......@@ -22,9 +22,7 @@ logger = logging.getLogger(__name__)
@click.option(
'--to_8bits',
is_flag=True,
default=True,
show_default=True,
help='converto to 8 bits'
help='convert to 8 bits'
)
@click.option(
'--log', type=str, default='info',
......
......@@ -38,7 +38,7 @@ class Well(ImageJStack):
def downscale(self, factor):
array = downscale_local_mean(self.array, (1, 1, 1, factor, factor, 1))
return Well(array, self.order, self.calibration_um * factor)
return Well(array.astype('uint16'), self.order, self.calibration_um * factor)
def to_8bits(self):
arr = self.array.astype("f")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment