Working for both Dask and Numpy arrays
Compare changes
+ 33
− 15
@@ -6,7 +6,13 @@ import os
@@ -6,7 +6,13 @@ import os
@@ -44,8 +50,8 @@ def export_ome_zarr(
@@ -44,8 +50,8 @@ def export_ome_zarr(
Automatically calculates the number of downsampled scales such that the smallest scale fits within the specified `chunk_size`.
@@ -100,32 +106,42 @@ def export_ome_zarr(
@@ -100,32 +106,42 @@ def export_ome_zarr(
@@ -142,7 +158,7 @@ def import_ome_zarr(path, scale=0, load=True):
@@ -142,7 +158,7 @@ def import_ome_zarr(path, scale=0, load=True):
@@ -160,7 +176,9 @@ def import_ome_zarr(path, scale=0, load=True):
@@ -160,7 +176,9 @@ def import_ome_zarr(path, scale=0, load=True):
raise ValueError(f"Scale {scale} does not exist in the data. Please choose a scale between 0 and {len(dask_data)-1}.")