YAXArrays.jl icon indicating copy to clipboard operation
YAXArrays.jl copied to clipboard

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

Open felixcremer opened this issue 2 years ago • 1 comments

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.

felixcremer avatar Feb 02 '23 15:02 felixcremer

It seems more than important to check the content of the axis no?

Balinus avatar Mar 22 '23 16:03 Balinus