Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Tracked by #2412
jhamman opened this issue Oct 18, 2024 · 0 comments · Fixed by #2413
Closed
Tracked by #2412

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

jhamman opened this issue Oct 18, 2024 · 0 comments · Fixed by #2413
Assignees
Labels
bug Potential issues with the zarr-python library V3 Affects the v3 branch
Milestone

Comments

@jhamman
Copy link
Member

jhamman commented Oct 18, 2024

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

@jhamman jhamman added the bug Potential issues with the zarr-python library label Oct 18, 2024
@jhamman jhamman added this to the 3.0.0 milestone Oct 18, 2024
@jhamman jhamman moved this to Todo in Zarr-Python - 3.0 Oct 18, 2024
@jhamman jhamman added the V3 Affects the v3 branch label Oct 18, 2024
@jhamman jhamman self-assigned this Oct 18, 2024
@jhamman jhamman mentioned this issue Oct 19, 2024
3 tasks
@github-project-automation github-project-automation bot moved this from Todo to Done in Zarr-Python - 3.0 Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Potential issues with the zarr-python library V3 Affects the v3 branch
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant