JuliaArrays / AxisArrays.jl

Performant arrays where each dimension can have a named axis with values
http://JuliaArrays.github.io/AxisArrays.jl/latest/
Other
200 stars 41 forks source link

More than one datapoint lies on axis value #165

Open ivborissov opened 5 years ago

ivborissov commented 5 years ago

Hi, thanks for this great package!

More of a question rather than an issue. I have often cases (with ODE solutions) when two or more values correspond to the same time point. Currently accessing this timepoint with atvalue leads to the following error:

julia> arr[atvalue(2.0)]
ERROR: more than one datapoint lies on axis value TolValue(2.0, tol=2.9802322387695312e-8); use an interval to return all values

What is a good way to handle it (access one of the values or both)?