Skip to content

DOC: Array.resize examples are outdated #3503

Closed

Description

@ziw-liu

Describe the issue linked to the documentation

Examples do not match the signature:

Examples
--------
>>> import zarr
>>> z = zarr.zeros(shape=(10000, 10000),
>>> chunk_shape=(1000, 1000),
>>> dtype="i4",)
>>> z.shape
(10000, 10000)
>>> z = z.resize(20000, 1000)
>>> z.shape
(20000, 1000)
>>> z2 = z.resize(50, 50)
>>> z.shape
(20000, 1000)
>>> z2.shape
(50, 50)

Suggested fix for documentation

Pass shape arguments as tuples.

Activity

  1. added
    help wantedIssue could use help from someone with familiarity on the topic
    documentationImprovements to the documentation
    on Oct 3, 2025
  2. ziw-liu commented on Oct 3, 2025

    @ziw-liu
    ContributorAuthor

    Likely due to #3498.

  3. ziw-liu commented on Oct 3, 2025

    @ziw-liu
    ContributorAuthor

    Yet checks added in #3500 are passing without any changes to this file. @d-v-b any ideas?

  4. d-v-b commented on Oct 3, 2025

    @d-v-b
    Contributor

    i think this is not getting checked by #3500 because it's not annotated as a python code block. I will fix this particular instance, but there are probably many more examples

  5. d-v-b commented on Oct 3, 2025

    @d-v-b
    Contributor

    this was addressed by #3500

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

    documentationImprovements to the documentationhelp wantedIssue could use help from someone with familiarity on the topic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions