isComparable¶
- Stoner.tools.isComparable(v1: Union[float, int, complex, numpy.ndarray], v2: Union[float, int, complex, numpy.ndarray]) bool [source]¶
Return true if v1 and v2 can be compared sensibly.
- Parameters
v1,v2 (any) – Two values to compare
- Returns
False if both v1 and v2 are numerical and both nan, otherwise True.