bundles / astropy 7.0.1 / astropy / utils / diff / diff_values
function
astropy.utils.diff:diff_values
source: /astropy/utils/diff.py :15
Signature
def diff_values ( a , b , rtol = 0.0 , atol = 0.0 ) Summary
Diff two scalar values. If both values are floats, they are compared to within the given absolute and relative tolerance.
Parameters
a, b: int, float, strScalar values to compare.
rtol, atol: floatRelative and absolute tolerances as accepted by numpy.allclose.
Returns
is_different: boolTrueif they are different, elseFalse.
Aliases
-
astropy.io.fits.diff.diff_values