Skip to content

Commit

Permalink
Tweaks to write_dask example
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Jan 16, 2025
1 parent 5275fd9 commit 88f1a70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ Using dask to fetch:


def get_tile(ch, z, row, column):
print("get_tile", ch, z, row, column)
mean_val = ((row + 1) * (column + 1) * 4) + (10 * z)
rng = np.random.default_rng(1000 * ch)
return rng.poisson(mean_val, size=tile_shape).astype(dtype)
Expand Down Expand Up @@ -284,6 +285,7 @@ Using dask to fetch:

print("dask_data", dask_data)

# This will create a downsampled 'multiscales' pyramid
write_image(dask_data, root, axes="czyx")

root.attrs["omero"] = {
Expand Down

0 comments on commit 88f1a70

Please sign in to comment.