Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to scale.py and writer.py to support scaling methods. #290

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ome_zarr/scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def gaussian(self, base: np.ndarray) -> List[np.ndarray]:
base,
downscale=self.downscale,
max_layer=self.max_layer,
multichannel=False,
channel_axis=None,
)
)

Expand All @@ -198,7 +198,7 @@ def laplacian(self, base: np.ndarray) -> List[np.ndarray]:
base,
downscale=self.downscale,
max_layer=self.max_layer,
multichannel=False,
channel_axis=None,
)
)

Expand Down
2 changes: 1 addition & 1 deletion ome_zarr/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ def _create_mip(
"Can't downsample if size of x or y dimension is 1. "
"Shape: %s" % (image.shape,)
)
mip = scaler.nearest(image)
mip = getattr(scaler, scaler.method)(image)
else:
LOGGER.debug("disabling pyramid")
mip = [image]
Expand Down