JuliaArrays / JuliaArrays/AxisArrays.jl
Implement squeeze for multiple axes
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 207
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
We can't restrict the type accepted to Tuple{Vararg{Type{<:Axis}}} because typeof((Axis{:time}, Axis{:label})) == Tuple{UnionAll, UnionAll} but we might be able to assume they are axis types when they're not Base.Dims.
This would be especially useful after https://github.com/JuliaLang/julia/pull/23500
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
Start by locating the existing squeeze implementation and its tests in AxisArrays.jl, then review how axis types and Base.Dims are currently dispatched. Implement support for squeezing multiple axes while respecting the type-handling constraint described in the issue, and confirm that the existing behavior remains intact alongside the multi-axis case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100