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
julia> x = AxisArray(rand(3), foo=[1//2, 1//3, 1//4])
julia> x[foo=atvalue(1//2)]
ERROR: BoundsError: attempt to access 3-element Array{Rational{Int64},1} at index [TolValue(1//2, tol=0//1)]
Seems to me that this should work the same way it does for symbols.
The text was updated successfully, but these errors were encountered:
This seems like a bug to me, since it has an explicit atvalue. Compare:
julia> z =AxisArray(rand(3), sy=[:a, :b, :c]);
julia> z[atvalue(:b)] # explicit0.5205382494635875
julia> z[:b] # this can guess based on type0.5205382494635875
julia> y =AxisArray(rand(3), bar=[10,20,30]);
julia> y[atvalue(20)] # explicit0.6526959443703837
julia> y[20] # interpreted as an index
ERROR: BoundsError: attempt to access 3-element Array{Float64,1} at index [20]
Example:
Seems to me that this should work the same way it does for symbols.
The text was updated successfully, but these errors were encountered: