Negative strides

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

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.

Description

enhancement

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)

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

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from JuliaAstro/ASDF.jl

All issues in JuliaAstro/ASDF.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.