bundles / astropy latest / astropy / io / fits / diff / ImageDataDiff / __init__
function
astropy.io.fits.diff:ImageDataDiff.__init__
source: /astropy/io/fits/diff.py :1011
Signature
def __init__ ( self , a , b , numdiffs = 10 , rtol = 0.0 , atol = 0.0 ) Parameters
a: BaseHDUAn HDU object.
b: BaseHDUAn HDU object to compare to the first HDU object.
numdiffs: int, optionalThe number of pixel/table values to output when reporting HDU data differences. Though the count of differences is the same either way, this allows controlling the number of different values that are kept in memory or output. If a negative value is given, then numdiffs is treated as unlimited (default: 10).
rtol: float, optionalThe relative difference to allow when comparing two float values either in header values, image arrays, or table columns (default: 0.0). Values which satisfy the expression
are considered to be different. The underlying function used for comparison is numpy.allclose.
atol: float, optionalThe allowed absolute difference. See also
rtolparameter.
Aliases
-
astropy.io.fits.ImageDataDiff.__init__