JuliaArrays / JuliaArrays/AxisArrays.jl
Why default tolerance at 0 in indexing on axis coordinate value?
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 207
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
I was playing around AxisArrays for the first time and did this:
using AxisArrays
x = 0:10:100 |> collect
a = AxisArray(rand(length(x)); x=x)
println(a[x=29..33])
println(a[x=30..30])
println(a[atvalue(29; atol=5)])
println(a[atvalue(29)]) # Does not work.
Would it not be more intuitive to set the default tolerance to a very large value? For my own personal use, I would use AxisArrays to find values nearest to a given coordinate in gridded data. Or did I overlook an option to set the default tolerance?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the AxisArrays examples using AxisArray indexing and atvalue, especially the difference between atol=5 and the default. Read the indexing and tolerance behavior around these entry points; done means reaching a documented, tested decision about default tolerance or a supported way to configure it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100