nan_or_equal
- glotaran.utils.helpers.nan_or_equal(lhs: Any, rhs: Any) bool [source]
Compare values which can be nan for equality.
This helper function is needed because
np.nan == np.nan
returnsFalse
.- Parameters:
lhs (Any) – Left hand side value.
rhs (Any) – Right hand side value.
- Returns:
Whether or not values are equal.
- Return type: