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> copy(idxs)
ERROR: MethodError: Cannot `convert` an object of type Vector{CartesianIndex{2}} to an object of type CartesianIndex{2}
Closest candidates are:
convert(::Type{T}, ::T) where T at Base.jl:61
Stacktrace:
[1] setindex!(A::Vector{CartesianIndex{2}}, x::Vector{CartesianIndex{2}}, i1::Int64)
@ Base ./array.jl:966
[2] copyto_unaliased!
@ ./abstractarray.jl:1044 [inlined]
[3] copyto!(dest::Vector{CartesianIndex{2}}, src::MeshArrays.gcmvector{CartesianIndex{2}, 1})
@ Base ./abstractarray.jl:1018
[4] copymutable(a::MeshArrays.gcmvector{CartesianIndex{2}, 1})
@ Base ./abstractarray.jl:1152
[5] copy(a::MeshArrays.gcmvector{CartesianIndex{2}, 1})
@ Base ./abstractarray.jl:1095
[6] top-level scope
@ REPL[83]:1
(As an aside, it's interesting that the proposed auto-aliasing detection in JuliaLang/julia#26237 is thinking that expressions like X .+ 180 might alias with the output (when you didn't even write what the output was!); what's happening here is that MeshArrays has defined broadcasting to create output arrays that explicitly share some of the same fields:
The new PR to automatically do deeper introspection of all fields is seeing these shared-memory components and thinking that it'll cause problems, so it's making these defensive copies.)
The text was updated successfully, but these errors were encountered:
This is a bit of a silly thing to ask, but we're (again) seeing errors over in JuliaLang/julia#26237. This time it seems to be stemming from
MeshArrays.jl/src/Grids.jl
Line 441 in 6f390fd
GridLoad
. In this case, none of the XS need to be shifted, so we end up with a:Copying this leads to:
(As an aside, it's interesting that the proposed auto-aliasing detection in JuliaLang/julia#26237 is thinking that expressions like
X .+ 180
might alias with the output (when you didn't even write what the output was!); what's happening here is that MeshArrays has defined broadcasting to create output arrays that explicitly share some of the same fields:MeshArrays.jl/src/Type_gcmvector.jl
Lines 64 to 68 in 6f390fd
The new PR to automatically do deeper introspection of all fields is seeing these shared-memory components and thinking that it'll cause problems, so it's making these defensive copies.)
The text was updated successfully, but these errors were encountered: