mcabbott / mcabbott/AxisKeys.jl
Preserve dimensions in `stack`, `vcat`
Open
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
- 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
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