-
Notifications
You must be signed in to change notification settings - Fork 19
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 with Extent hits non-lazy DimensionalData path #490
Comments
Most likely we should overload the getindex method ourselves. |
Maybe this is even fully broken: If I wait it out I get the following error, this is on a GDALBand based data cube from RQADeforestation: julia> scube = cube[ext];
ERROR: MethodError: no method matching _slicespan(::DimensionalData.Dimensions.Lookups.Points, ::DimensionalData.Dimensions.Lookups.Irregular{…}, ::DimensionalData.Dimensions.Lookups.Sampled{…}, ::Base.Slice{…})
The function `_slicespan` exists, but no method is defined for this combination of argument types.
Closest candidates are:
_slicespan(::DimensionalData.Dimensions.Lookups.Intervals, ::DimensionalData.Dimensions.Lookups.Irregular, ::DimensionalData.Dimensions.Lookups.Lookup, ::AbstractArray)
@ DimensionalData ~/.julia/packages/DimensionalData/uMSYt/src/Lookups/lookup_arrays.jl:715
_slicespan(::DimensionalData.Dimensions.Lookups.Irregular, ::DimensionalData.Dimensions.Lookups.Lookup, ::AbstractArray)
@ DimensionalData ~/.julia/packages/DimensionalData/uMSYt/src/Lookups/lookup_arrays.jl:703
_slicespan(::DimensionalData.Dimensions.Lookups.Explicit, ::DimensionalData.Dimensions.Lookups.Lookup, ::AbstractArray)
@ DimensionalData ~/.julia/packages/DimensionalData/uMSYt/src/Lookups/lookup_arrays.jl:702
...
Stacktrace:
[1] _slicespan(span::DimensionalData.Dimensions.Lookups.Irregular{…}, l::DimensionalData.Dimensions.Lookups.Sampled{…}, i::Base.Slice{…})
@ DimensionalData.Dimensions.Lookups ~/.julia/packages/DimensionalData/uMSYt/src/Lookups/lookup_arrays.jl:703
[2] slicespan(l::DimensionalData.Dimensions.Lookups.Sampled{…}, i::Base.Slice{…})
@ DimensionalData.Dimensions.Lookups ~/.julia/packages/DimensionalData/uMSYt/src/Lookups/lookup_arrays.jl:698
[3] getindex
@ ~/.julia/packages/DimensionalData/uMSYt/src/Lookups/lookup_arrays.jl:200 [inlined]
[4] getindex
@ ~/.julia/packages/DimensionalData/uMSYt/src/Dimensions/indexing.jl:11 [inlined]
[5] _slicedims
@ ~/.julia/packages/DimensionalData/uMSYt/src/Dimensions/primitives.jl:460 [inlined]
[6] _slicedims
@ ~/.julia/packages/DimensionalData/uMSYt/src/Dimensions/primitives.jl:444 [inlined]
[7] _slicedims (repeats 2 times)
@ ~/.julia/packages/DimensionalData/uMSYt/src/Dimensions/primitives.jl:445 [inlined]
[8] _slicedims
@ ~/.julia/packages/DimensionalData/uMSYt/src/Dimensions/primitives.jl:433 [inlined]
[9] slicedims
@ ~/.julia/packages/DimensionalData/uMSYt/src/Dimensions/primitives.jl:413 [inlined]
[10] rebuildsliced
@ ~/.julia/packages/DimensionalData/uMSYt/src/array/array.jl:100 [inlined]
[11] rebuildsliced
@ ~/.julia/packages/DimensionalData/uMSYt/src/array/array.jl:99 [inlined]
[12] getindex
@ ~/.julia/packages/DimensionalData/uMSYt/src/array/indexing.jl:131 [inlined]
[13] getindex(A::YAXArray{Union{…}, 3, DiskArrayTools.CFDiskArray{…}, Tuple{…}, Dict{…}}, extent::Extent{(:X, :Y), Tuple{…}})
@ DimensionalData ~/.julia/packages/DimensionalData/VxDQB/src/array/indexing.jl:12
[14] top-level scope
@ REPL[66]:1
Some type information was truncated. Use `show(err)` to see complete types.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
indexing into an YAXArray with an Extent hits some non-lazy DD path.
The text was updated successfully, but these errors were encountered: