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> A =AxisArray(collect(reshape(1:15,3,5)), :y, :x)
2-dimensional AxisArray{Int64,2,...} with axes::y, Base.OneTo(3)
:x, Base.OneTo(5)
And data, a 3×5 Array{Int64,2}:147101325811143691215
julia>mapslices(sum, A; dims=1)
ERROR: MethodError: no method matching reduced_indices(::Tuple{Axis{:y,UnitRange{Int64}}}, ::UnitRange{Int64})
Closest candidates are:reduced_indices(::Tuple{Vararg{Axis,N} where N}, ::Tuple{}) at /Users/glenn/.julia/dev/AxisArrays/src/core.jl:350reduced_indices(::Tuple{Vararg{Axis,N} where N}, ::Integer) at /Users/glenn/.julia/dev/AxisArrays/src/core.jl:352reduced_indices(::Tuple{Vararg{Axis,N}}, ::Tuple{Vararg{Int64,N}}where N) where N at /Users/glenn/.julia/dev/AxisArrays/src/core.jl:357...
Stacktrace:
[1] reduced_indices(::AxisArray{Int64,1,Array{Int64,1},Tuple{Axis{:y,UnitRange{Int64}}}}, ::UnitRange{Int64}) at /Users/glenn/.julia/dev/AxisArrays/src/core.jl:347
[2] mapslices(::typeof(sum), ::AxisArray{Int64,2,Array{Int64,2},Tuple{Axis{:y,Base.OneTo{Int64}},Axis{:x,Base.OneTo{Int64}}}}; dims::Int64) at ./abstractarray.jl:2098
[3] top-level scope at REPL[90]:1
The text was updated successfully, but these errors were encountered:
Trying to call
mapslices
over anAxisArray
errors which I think can be fixed with the appropriate method forreduce_indices
.This seems somewhat related to #7.
MWE:
The text was updated successfully, but these errors were encountered: