bundles / astropy latest / astropy / io / fits / diff / FITSDiff / __init__
function
astropy.io.fits.diff:FITSDiff.__init__
source: /astropy/io/fits/diff.py :214
Signature
def __init__ ( self , a , b , ignore_hdus = [] , ignore_keywords = [] , ignore_comments = [] , ignore_fields = [] , numdiffs = 10 , rtol = 0.0 , atol = 0.0 , ignore_blanks = True , ignore_blank_cards = True ) Parameters
a: str or `HDUList`The filename of a FITS file on disk, or an HDUList object.
b: str or `HDUList`The filename of a FITS file on disk, or an HDUList object to compare to the first file.
ignore_hdus: sequence, optionalHDU names to ignore when comparing two FITS files or HDU lists; the presence of these HDUs and their contents are ignored. Wildcard strings may also be included in the list.
ignore_keywords: sequence, optionalHeader keywords to ignore when comparing two headers; the presence of these keywords and their values are ignored. Wildcard strings may also be included in the list.
ignore_comments: sequence, optionalA list of header keywords whose comments should be ignored in the comparison. May contain wildcard strings as with ignore_keywords.
ignore_fields: sequence, optionalThe (case-insensitive) names of any table columns to ignore if any table data is to be compared.
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.ignore_blanks: bool, optionalIgnore extra whitespace at the end of string values either in headers or data. Extra leading whitespace is not ignored (default: True).
ignore_blank_cards: bool, optionalIgnore all cards that are blank, i.e. they only contain whitespace (default: True).
Aliases
-
astropy.io.fits.FITSDiff.__init__