Skip to content

attrs as kwarg Β #538

@d-v-b

Description

@d-v-b

Is there any reason why it's not possible to set the attrs of an array / group by passing a kwarg to the relevant creation function? e.g.:

z = zarr.create((10,10),chunks=(1,1), attrs={'foo':10})

(The current behavior is to ignore the attrs kwarg)
Looking back in time, I see this discussion: #121. It seems attrs as a kwarg was not pursued because of concerns about matching the behavior of hdf5? How relevant is that concern today>

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssue could use help from someone with familiarity on the topic

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions