JuliaAstro / JuliaAstro/ASDF.jl

Negative strides

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

Nobody has claimed this yet.

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

Description

Just saving here, will clean up later:

Negative strides: the constructor rejects strides < 0, which the ndarray-1.0.0 schema explicitly permits (minimum: 1 / maximum: -1 anyOf) and which Python asdf writes for reversed views (arr[::-1] --> strides: [-8]). Would be good to accept these too (non-C-contiguous view support)

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 by tracing the constructor validation that rejects strides below zero, then compare it with the ndarray-1.0.0 schema and the Python ASDF example for arr[::-1]. Done means negative strides are accepted for reversed, non-C-contiguous views without breaking existing stride handling.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.