JuliaAstro / JuliaAstro/ASDF.jl
Degenerate shapes
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:
-
Inline empty arrays: a zero-length array stored inline (
data: [], as Python asdf writes fornp.zeros(0)with inline storage) fails in the constructor atstack(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. -
0-d ndarrays:
shape: [](permitted by the standard) yields default strides of length 1, failing thelength(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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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