Skip to content

Commit

Permalink
ENH: Default method is ITKWASM_GAUSSIAN
Browse files Browse the repository at this point in the history
Faster and lighter
  • Loading branch information
thewtex committed Jan 26, 2024
1 parent 2ca7754 commit db6f89a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ngff_zarr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def main():
processing_group.add_argument(
"-m",
"--method",
default="dask_image_gaussian",
default="itkwasm_gaussian",
choices=methods_values,
help="Downsampling method",
)
Expand Down Expand Up @@ -292,7 +292,7 @@ def shutdown_client(sig_id, frame): # noqa: ARG001
input_backend = detect_cli_io_backend(args.input)
else:
input_backend = ConversionBackend(args.input_backend)
method = Methods.ITK_GAUSSIAN if args.method is None else Methods(args.method)
method = Methods.ITKWASM_GAUSSIAN if args.method is None else Methods(args.method)

if args.output:
output_backend = detect_cli_io_backend(
Expand Down
2 changes: 1 addition & 1 deletion ngff_zarr/to_multiscales.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def to_multiscales(
ngff_image.data = ngff_image.data.rechunk(da_out_chunks)

if method is None:
method = Methods.DASK_IMAGE_GAUSSIAN
method = Methods.ITKWASM_GAUSSIAN

if method is Methods.ITKWASM_GAUSSIAN:
images = _downsample_itkwasm(
Expand Down

0 comments on commit db6f89a

Please sign in to comment.