Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getindex(::KeyedVector, ::Colon, ::Colon) is broken #116

Open
mzgubic opened this issue Jul 7, 2022 · 0 comments
Open

getindex(::KeyedVector, ::Colon, ::Colon) is broken #116

mzgubic opened this issue Jul 7, 2022 · 0 comments

Comments

@mzgubic
Copy link
Contributor

mzgubic commented Jul 7, 2022

Compare

julia> rand(5)[:, :]
5×1 Matrix{Float64}:
 0.9821831290750086
 0.3574801822912895
 0.36794326869601435
 0.39263359417430765
 0.45195237298701174

julia> wrapdims(rand(5); obs=1:5)[:, :]
ERROR: BoundsError: attempt to access Tuple{Symbol} at index [2]
Stacktrace:
 [1] macro expansion
   @ ~/.julia/packages/NamedDims/f4IvC/src/name_core.jl:0 [inlined]
 [2] remaining_dimnames_from_indexing(dimnames::Tuple{Symbol}, inds::Tuple{Base.Slice{Base.OneTo{Int64}}, Base.Slice{Base.OneTo{Int64}}})
   @ NamedDims ~/.julia/packages/NamedDims/f4IvC/src/name_core.jl:355
 [3] getindex(::NamedDimsArray{(:obs,), Float64, 1, Vector{Float64}}, ::Base.Slice{Base.OneTo{Int64}}, ::Base.Slice{Base.OneTo{Int64}})
   @ NamedDims ~/.julia/packages/NamedDims/f4IvC/src/wrapper_array.jl:160
 [4] getindex(::KeyedArray{Float64, 1, NamedDimsArray{(:obs,), Float64, 1, Vector{Float64}}, Base.RefValue{UnitRange{Int64}}}, ::Function, ::Function)
   @ AxisKeys ~/.julia/packages/AxisKeys/MK99E/src/struct.jl:77
 [5] top-level scope
   @ REPL[57]:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant