YAXArrays.jl
YAXArrays.jl copied to clipboard
map of two cubes should use the axis names and does not depend on the axes position
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.
It seems more than important to check the content of the axis no?