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

Add testing_data with arbitrary chunking #10

Merged
merged 5 commits into from
Jul 19, 2024
Merged

Add testing_data with arbitrary chunking #10

merged 5 commits into from
Jul 19, 2024

Conversation

tcompa
Copy link
Collaborator

@tcompa tcompa commented Jul 18, 2024

I run scripts 0 and 1, as a setup, and then rechunk all multiscale levels

$ python rechunk_zarr.py

old_array=dask.array<from-zarr, shape=(3, 1, 2160, 5120), dtype=uint16, chunksize=(1, 1, 2160, 2560), chunktype=numpy.ndarray>
new_array=dask.array<rechunk-merge, shape=(3, 1, 2160, 5120), dtype=uint16, chunksize=(1, 1, 50, 50), chunktype=numpy.ndarray>

old_array=dask.array<from-zarr, shape=(3, 1, 1080, 2560), dtype=uint16, chunksize=(1, 1, 1080, 2560), chunktype=numpy.ndarray>
new_array=dask.array<rechunk-merge, shape=(3, 1, 1080, 2560), dtype=uint16, chunksize=(1, 1, 50, 50), chunktype=numpy.ndarray>

old_array=dask.array<from-zarr, shape=(3, 1, 540, 1280), dtype=uint16, chunksize=(1, 1, 540, 1280), chunktype=numpy.ndarray>
new_array=dask.array<rechunk-merge, shape=(3, 1, 540, 1280), dtype=uint16, chunksize=(1, 1, 50, 50), chunktype=numpy.ndarray>

old_array=dask.array<from-zarr, shape=(3, 1, 270, 640), dtype=uint16, chunksize=(1, 1, 270, 640), chunktype=numpy.ndarray>
new_array=dask.array<rechunk-merge, shape=(3, 1, 270, 640), dtype=uint16, chunksize=(1, 1, 50, 50), chunktype=numpy.ndarray>

old_array=dask.array<from-zarr, shape=(3, 1, 135, 320), dtype=uint16, chunksize=(1, 1, 135, 320), chunktype=numpy.ndarray>
new_array=dask.array<rechunk-merge, shape=(3, 1, 135, 320), dtype=uint16, chunksize=(1, 1, 50, 50), chunktype=numpy.ndarray>

And here is the content of 20200812-CardiomyocyteDifferentiation14-Cycle1_mip.zarr/B/03/0/0/.zarray:

{
    "chunks": [
        1,
        1,
        50,
        50
    ],
    "compressor": {
        "blocksize": 0,
        "clevel": 5,
        "cname": "lz4",
        "id": "blosc",
        "shuffle": 1
    },
    "dimension_separator": "/",
    "dtype": "<u2",
    "fill_value": 0,
    "filters": null,
    "order": "C",
    "shape": [
        3,
        1,
        2160,
        5120
    ],
    "zarr_format": 2
}

@zonia3000 zonia3000 merged commit aeacda4 into main Jul 19, 2024
@zonia3000 zonia3000 deleted the many-chunks branch July 19, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants