JuliaAstro / JuliaAstro/ASDF.jl

Degenerate shapes

Open
#69 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
23
Forks
9
Avg merge
17h 12m
Merged PRs (30d)
3

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the constructor path that calls stack(data), then trace materialization and writer handling for block-backed zero-size arrays and shape: [] 0-d arrays. Reproduce both cases, including inline empty arrays, and confirm completion when construction, materialization, and writing accept the cases with valid shapes and strides.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.