We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Where
Projected
MWE:
using Rasters A = rand(X(Projected(1:10; crs = nothing))) A[X(Where(<(4)))]
Stacktrace:
ERROR: ArgumentError: Failed to assign fields (:val,) to object with fields (:f,). Stacktrace: [1] macro expansion @ ~/.julia/packages/ConstructionBase/lUKuV/src/ConstructionBase.jl:140 [inlined] [2] check_patch_fields_exist(obj::Where{Base.Fix2{typeof(<), Int64}}, patch::@NamedTuple{val::Base.Fix2{typeof(<), Int64}}) @ ConstructionBase ~/.julia/packages/ConstructionBase/lUKuV/src/ConstructionBase.jl:140 [3] setproperties_object(obj::Where{Base.Fix2{typeof(<), Int64}}, patch::@NamedTuple{val::Base.Fix2{typeof(<), Int64}}) @ ConstructionBase ~/.julia/packages/ConstructionBase/lUKuV/src/ConstructionBase.jl:207 [4] setproperties(obj::Where{Base.Fix2{typeof(<), Int64}}, patch::@NamedTuple{val::Base.Fix2{typeof(<), Int64}}) @ ConstructionBase ~/.julia/packages/ConstructionBase/lUKuV/src/ConstructionBase.jl:136 [5] rebuild(x::Where{Base.Fix2{typeof(<), Int64}}; kw::@Kwargs{val::Base.Fix2{typeof(<), Int64}}) @ DimensionalData.Dimensions.Lookups ~/.julia/packages/DimensionalData/oXUIT/src/Lookups/Lookups.jl:65 [6] #selectindices#3 @ ~/.julia/dev/Rasters/src/lookup.jl:94 [inlined] [7] selectindices @ ~/.julia/dev/Rasters/src/lookup.jl:92 [inlined] [8] _dims2indices @ ~/.julia/packages/DimensionalData/oXUIT/src/Dimensions/indexing.jl:117 [inlined] [9] _dims2indices @ ~/.julia/packages/DimensionalData/oXUIT/src/Dimensions/indexing.jl:109 [inlined] [10] macro expansion @ ~/.julia/packages/DimensionalData/oXUIT/src/Dimensions/indexing.jl:55 [inlined] [11] _dims2indices(lookups::Tuple{Projected{…}}, dims::Tuple{X{…}}, I::Tuple{X{…}}) @ DimensionalData.Dimensions ~/.julia/packages/DimensionalData/oXUIT/src/Dimensions/indexing.jl:55 [12] dims2indices @ ~/.julia/packages/DimensionalData/oXUIT/src/Dimensions/indexing.jl:50 [inlined] [13] dims2indices @ ~/.julia/packages/DimensionalData/oXUIT/src/Dimensions/indexing.jl:32 [inlined] [14] _dim_getindex @ ~/.julia/packages/DimensionalData/oXUIT/src/array/indexing.jl:110 [inlined] [15] getindex(A::Raster{…}, i::X{…}) @ DimensionalData ~/.julia/packages/DimensionalData/oXUIT/src/array/indexing.jl:91 [16] top-level scope @ REPL[3]:1 Some type information was truncated. Use `show(err)` to see complete types.
This bug got introduced in #821, but I'm not quite sure what the proper fix is
The text was updated successfully, but these errors were encountered:
Something like this is also broken A[X = At([1,2])]
A[X = At([1,2])]
Due to this ugly bug
Rasters.jl/src/lookup.jl
Line 98 in 140b75e
Should rebuild(val=selval)sel just be sel?
rebuild(val=selval)sel
sel
Sorry, something went wrong.
I think its fixed on breaking?
breaking
Just checked and the one with At([1,2]) is, but the original one with Where throws the same error
At([1,2])
No branches or pull requests
MWE:
Stacktrace:
This bug got introduced in #821, but I'm not quite sure what the proper fix is
The text was updated successfully, but these errors were encountered: