JuliaArrays / JuliaArrays/AxisArrays.jl

Why default tolerance at 0 in indexing on axis coordinate value?

Open
#205 1 comment 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 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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.