JuliaArrays / JuliaArrays/AxisArrays.jl

Assignment with Intervals gives error.

Open
#223 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
207
Forks
41
PR merge metrics
No merged PRs in 30d

Description

I'm trying to assign values using intervals, but get an error. Is this a bug?

julia> B = AxisArray(randn(3,2))
julia> B[row=1..2, col=2] = [0.2, 0.3]

UndefVarError: `..` not defined

top-level scope@[Local: 1](http://localhost:1234/edit?id=4a47ab24-2408-11ee-1558-2b8ee5dbdb82#)[inlined]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Julia REPL example using AxisArray and the interval assignment shown. Trace how AxisArrays handles the named-axis indexing and determine whether .. is supported; done means the example no longer raises UndefVarError, or the supported syntax and resulting behavior are clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.