Skip to content

Degenerate shapes #69

Description

@icweaver

Just saving here, will clean up later:

  1. Inline empty arrays: a zero-length array stored inline (data: [], as Python asdf writes for np.zeros(0) with inline storage) fails in the constructor at stack(data) (ArgumentError: stack on an empty collection is not allowed) before any stride logic runs. The zero-size fix here covers block-backed nodes only.

  2. 0-d ndarrays: shape: [] (permitted by the standard) yields default strides of length 1, failing the length(shape) == length(strides) check; NumPy gives () strides for 0-d arrays. Needs constructor, materialization, and writer support together.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions