diff --git a/src/Cubes/Cubes.jl b/src/Cubes/Cubes.jl index b8f24eae..6487b718 100644 --- a/src/Cubes/Cubes.jl +++ b/src/Cubes/Cubes.jl @@ -205,15 +205,18 @@ function DD.rebuild(A::YAXArray; data=parent(A), dims=DD.dims(A), metadata=DD.me end function caxes(x) - #@show x - #@show typeof(x) - dims = map(enumerate(dimnames(x))) do a - index, symbol = a - values = YAXArrayBase.dimvals(x, index) - DD.Dim{symbol}(values) - end - (dims... ,) + #@show x + #@show typeof(x) + dims = map(enumerate(dimnames(x))) do a + index, symbol = a + values = YAXArrayBase.dimvals(x, index) + DD.Dim{symbol}(values) + end + (dims... ,) end + +caxes(x::DD.AbstractDimArray) = collect(DD.dims(x)) + caxes(c::YAXArray) = getfield(c, :axes) """ caxes