You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When selecting an AxisArray by index, it returns the correct order as expected. However, if one selects by axis values, it doesn’t preserve the order (see example below).
julia> tmp =AxisArray(rand(2,3), x=[:a, :b], y=[:A, :B, :C])
2-dimensional AxisArray{Float64,2,...} with axes::x, [:a, :b]
:y, [:A, :B, :C]
And data, a 2×3 Array{Float64,2}:0.3730030.3550060.1587010.6913540.2771190.651728
julia> tmp[[2,1],:]
2-dimensional AxisArray{Float64,2,...} with axes::x, [:b, :a]
:y, [:A, :B, :C]
And data, a 2×3 Array{Float64,2}:0.6913540.2771190.6517280.3730030.3550060.158701
julia> tmp[[:b, :a],:]
2-dimensional AxisArray{Float64,2,...} with axes::x, [:a, :b]
:y, [:A, :B, :C]
And data, a 2×3 Array{Float64,2}:0.3730030.3550060.1587010.6913540.2771190.651728
The text was updated successfully, but these errors were encountered:
When selecting an AxisArray by index, it returns the correct order as expected. However, if one selects by axis values, it doesn’t preserve the order (see example below).
The text was updated successfully, but these errors were encountered: