Skip to content
Snippets Groups Projects
Commit 015e7d5d authored by s214735's avatar s214735
Browse files

dask fixes

parent 4bfa8b4a
No related branches found
No related tags found
No related merge requests found
...@@ -70,10 +70,10 @@ class OMEScaler( ...@@ -70,10 +70,10 @@ class OMEScaler(
This method performs multi-scale downsampling on a 3D dataset, generating image pyramids. It processes the data in chunks using Dask. This method performs multi-scale downsampling on a 3D dataset, generating image pyramids. It processes the data in chunks using Dask.
Args: Args:
base (dask.array): The 3D array (volume) to be downsampled. Must be a Dask array for chunked processing. base (dask.array.core.array): The 3D array (volume) to be downsampled. Must be a Dask array for chunked processing.
Returns: Returns:
list of dask.array: A list of downsampled volumes, where each element represents a different scale. The first element corresponds to the original resolution, and subsequent elements represent progressively downsampled versions. list of dask.array.core.Array: A list of downsampled volumes, where each element represents a different scale. The first element corresponds to the original resolution, and subsequent elements represent progressively downsampled versions.
The downsampling process occurs scale by scale, using the following steps: The downsampling process occurs scale by scale, using the following steps:
- For each scale, the array is resized based on the downscale factor, computed as a function of the current scale level. - For each scale, the array is resized based on the downscale factor, computed as a function of the current scale level.
......
...@@ -260,7 +260,7 @@ class DataSaver: ...@@ -260,7 +260,7 @@ class DataSaver:
Args: Args:
path (str): The path to the Zarr array on disk. path (str): The path to the Zarr array on disk.
data (dask.array): The Dask array to be saved to disk. data (dask.array.core.Array): The Dask array to be saved to disk.
Returns: Returns:
zarr.core.Array: The Zarr array saved on disk. zarr.core.Array: The Zarr array saved on disk.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment