Skip to content

[v3] AttributeError: 'Array' object has no attribute 'append' #2404

Closed
@jhamman

Description

@jhamman

Zarr version

3.0.0.beta

Numcodecs version

0.13

Python Version

3.11

Operating System

Mac

Installation

pip

Description

We need to implement Array.append in 3.0

Steps to reproduce

In [11]: a = np.arange(10000000, dtype='i4').reshape(10000, 1000)
    ...: z = zarr.array(a, chunks=(1000, 100))
    ...: z.shape
    ...: z.append(a)
    ...: z.append(np.vstack([a, a]), axis=1)
    ...: z.shape
--------------------------------------------------------------------------
AttributeError                           Traceback (most recent call last)
Cell In[11], line 4
      2 z = zarr.array(a, chunks=(1000, 100))
      3 z.shape
----> 4 z.append(a)
      5 z.append(np.vstack([a, a]), axis=1)
      6 z.shape

AttributeError: 'Array' object has no attribute 'append'

Additional output

No response

Metadata

Metadata

Assignees

Labels

bugPotential issues with the zarr-python library

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions