JuliaArrays / JuliaArrays/AxisArrays.jl

Allow out of bounds in `atindex` padding with `missing`

Open
#157 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
207
Forks
41
PR merge metrics
No merged PRs in 30d

Description

I was thinking that often when takie atindex windows one can easily go out of bounds of the original Array (when one index is near the boundary). I was wondering whether it'd make sense to have "softer" atindex that returns arrays of eltype Union{T, Missing} and simply gives missing for the out of bound part.

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 locating the atindex implementation and its current out-of-bounds behavior. Clarify the proposed API for missing-padded windows and define tests covering the returned Union{T, Missing} arrays and boundary cases before implementing.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.