cf.CellMethod.equivalent¶
-
CellMethod.
equivalent
(other, rtol=None, atol=None, verbose=False, traceback=False)[source]¶ True if two cell methods are equivalent, False otherwise.
The
axes
andintervals
attributes are ignored in the comparison.Parameters: - other :
The object to compare for equality.
- atol : float, optional
The absolute tolerance for all numerical comparisons, By default the value returned by the
ATOL
function is used.- rtol : float, optional
The relative tolerance for all numerical comparisons, By default the value returned by the
RTOL
function is used.
Returns: bool
Whether or not the two instances are equivalent.
Examples: