mcabbott / mcabbott/AxisKeys.jl

Preserve dimensions in `stack`, `vcat`

Open
#161 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
154
Forks
31
PR merge metrics
No merged PRs in 30d

Description

I want to preserve dimensions.

julia> let
           ka = KeyedArray(
               rand(4,3);
               a=[1,2,1,2],
               b=1:3,
           )
           stack([ka, ka])
       end
4×3×2 Array{Float64, 3}:
[:, :, 1] =
 0.157501  0.15453   0.236119
 0.62595   0.142494  0.503847
 0.646891  0.829133  0.323376
 0.487593  0.930134  0.338322

[:, :, 2] =
 0.157501  0.15453   0.236119
 0.62595   0.142494  0.503847
 0.646891  0.829133  0.323376
 0.487593  0.930134  0.338322

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

Reproduce the Julia example with KeyedArray and compare the current results of stack and vcat. Inspect the implementations or entry points for those operations and any nearby tests; done means the resulting arrays retain the relevant keyed dimensions rather than returning only plain dimensions.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.