Skip to content

Feature request: One array available in more than one group, or under several names. #690

Closed as not planned

Description

@adrianloy

I would like to be able to request one array either under two different names in one group, or have the same array be part of two groups at the same time. The use case is to have different splits of the data (e.g. 5 fold split, and a simple train/test split) and different people want to be able to "query" for arrays using either splitting logic a or splitting logic b.

So I would like to be able to retrieve the same array in a group either via root['/dataset/train/array1'] or via root['/dataset/split1/array1']. Alternatively, have two different groups where the exact same array is part of.

Am I missing how to solve this via zarr right now? Do you think its a usefull feature? I can also build and managa an index over my files in a different object, but it seems desireable if I could do this via zarr directly.

Activity

  1. d-v-b commented on Sep 24, 2026

    @d-v-b
    Contributor

    i'm closing this as not planned, as it's a deviation from the zarr hierarchy model. a custom store which e.g. routes requests for a/*/zarr.json to shared/zarr.json would achieve this goal without perturbing the hierarchy model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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