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

Dot-assignment fails with MethodError: no method matching dotview #185

Open
sdl1 opened this issue Jun 10, 2020 · 1 comment
Open

Dot-assignment fails with MethodError: no method matching dotview #185

sdl1 opened this issue Jun 10, 2020 · 1 comment

Comments

@sdl1
Copy link

sdl1 commented Jun 10, 2020

julia> using AxisArrays

julia> x = AxisArray(rand(3, 3));

julia> x[row=1:2] .= 1
ERROR: MethodError: no method matching dotview(::AxisArray{Float64,2,Array{Float64,2},Tuple{Axis{:row,Base.OneTo{Int64}},Axis{:col,Base.OneTo{Int64}}}}; row=1:2)
Closest candidates are:
  dotview(::Any...) at broadcast.jl:1138 got unsupported keyword argument "row"
  dotview(::BitArray, ::BitArray) at broadcast.jl:1108 got unsupported keyword argument "row"
Stacktrace:
 [1] top-level scope at REPL[4]:1
 [2] eval(::Module, ::Any) at ./boot.jl:331
 [3] eval_user_input(::Any, ::REPL.REPLBackend) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86
 [4] run_backend(::REPL.REPLBackend) at /Users/sean/.julia/packages/Revise/C272c/src/Revise.jl:1075
 [5] top-level scope at none:0

(Julia 1.4.1, AxisArrays 0.4.3)

In NamedDims.jl the dotview method was defined to give this functionality, see comment here, is this needed here?

@oxinabox
Copy link
Member

@mbauman did we ever progress on this?
I think we may have stopped in
JuliaLang/julia#31729
JuliaLang/julia#31732

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

2 participants