Skip to content

Is ChunkIndices used or could it be removed? #268

@felixcremer

Description

@felixcremer

I am currently looking into writing tests for the chunks.jl file. Thereby I saw that ChunkIndices is not used in the DiskArrays repository and when I search for it in Zarr.jl it is also not used but Zarr.jl defines its own chunkindices function with this definition:

chunkindices(z::ZArray) = CartesianIndices(map((s, c) -> 1:ceil(Int, s/c), z.metadata.shape[], z.metadata.chunks))

Is the ChunkIndices type actually needed and if so, should it also be used in Zarr.jl.
I would need to check the other dependents of DiskArray whether it is used in the wider ecosystem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions