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
The behavior of Base.isless between a MeasuredValue and a Quantity is currently discussed, as its definition can lead to confusion in our eyes (@8me and @tamasgal).
The idea of the current implementation says, that the comparison has to be definitely correct to return true. In the following example
because the within the limits the particle can be greater (up to 2057MeV), but it is not sure. This handling leads on the other hand to:
julia> p.mass < 2050u"MeV"
false
because it is also within limits and no clear statement can be made. One option (beside not touching the current behavior) could be, to compare it directly to the mass value of the catalog and ignore the limits. But from my point of view there is a reason, why the values are coming with the limits .... so ... let the games, i.e. the discussion, begin! 😉
The text was updated successfully, but these errors were encountered:
Yes, so indeed, whenever I have to do with this (demo purposes or whatever), I get confused a bit but of course, our logic and current implementation makes sense 😉
In any case, the user is always able to use the mean/median value:
The behavior of
Base.isless
between aMeasuredValue
and aQuantity
is currently discussed, as its definition can lead to confusion in our eyes (@8me and @tamasgal).The idea of the current implementation says, that the comparison has to be definitely correct to return
true
. In the following exampleit means
because the within the limits the particle can be greater (up to 2057MeV), but it is not sure. This handling leads on the other hand to:
because it is also within limits and no clear statement can be made. One option (beside not touching the current behavior) could be, to compare it directly to the mass value of the catalog and ignore the limits. But from my point of view there is a reason, why the values are coming with the limits .... so ... let the games, i.e. the discussion, begin! 😉
The text was updated successfully, but these errors were encountered: