JuliaDataCubes / JuliaDataCubes/YAXArrays.jl

map of two cubes should use the axis names and does not depend on the axes position

Open
#219 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
132
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Currently, when I have two cubes of the same size with the same size, but different axis positions, the map of these two cubes would fail because we check for the actual axlist and not only for the content of every axis.
I can align the two cubes before with the following line:

julia> permutedims(cubeA, YAXArrays.Axes.findAxis.(caxes(cubeA), (cubeB,)))

I am wondering, whether we should align the axes of the cubes in the map function?
We could make this a keyword argument, so that this is only done, when the user explicitly asks for it.

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 with the map function and compare how it checks the axes of two cubes; the issue identifies caxes, Axes.findAxis, and permutedims as the relevant entry points. Determine whether mapping should align axes by name regardless of position or expose that behavior as an explicit keyword, then verify mapping works for equal-sized cubes with differently ordered axes.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.