Skip to content

[v3] Missing array method on groups #2028

Closed
@tomwhite

Description

@tomwhite

Zarr version

3.0.0a1

Numcodecs version

0.12.1

Python Version

3.11.9

Operating System

Mac

Installation

pip

Description

There is no Group.array method in v3, which is a fairly common way of creating nested arrays.

Steps to reproduce

>>> import numpy as np
>>> import zarr.v2 as zarr
>>> a = np.arange(100000000).reshape(10000, 10000)
>>> root = zarr.group()
>>> root.array("a", a)
<zarr.v2.core.Array '/a' (10000, 10000) int64>
>>> import zarr
>>> root = zarr.group()
>>> root.array("a", a)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'Group' object has no attribute 'array'. Did you mean: 'arrays'?

Additional output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPotential issues with the zarr-python library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions