isComparable

Stoner.tools.isComparable(v1: float | int | complex | ndarray, v2: float | int | complex | 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.