You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing the Axis functions and I found, that axVal2Index only throws an error, when it finds a fuzzy match for multiple objects, and not when it finds a perfect match for multiple objects. I am not sure, how problematic it is, but I find it odd.
julia> multiplevalax =CategoricalAxis("MultVal", ["One", "Two", "One"])
MultVal Axis with 3 elements: One Two One
julia> YAXArrays.Cubes.Axes.axVal2Index(multiplevalax, "One", fuzzy=true)
1
julia> YAXArrays.Cubes.Axes.axVal2Index(multiplevalax, "one", fuzzy=true)
ERROR: Could not find unique value of one in MultVal Axis with 3 elements: One Two One
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] axVal2Index(axis::CategoricalAxis{String, :MultVal, Vector{String}}, v::String; fuzzy::Bool)
@ YAXArrays.Cubes.Axes ~/.julia/dev/YAXArrays/src/Cubes/Axes.jl:167
[3] top-level scope
@ REPL[287]:1
The text was updated successfully, but these errors were encountered:
I am testing the Axis functions and I found, that axVal2Index only throws an error, when it finds a fuzzy match for multiple objects, and not when it finds a perfect match for multiple objects. I am not sure, how problematic it is, but I find it odd.
The text was updated successfully, but these errors were encountered: