bundles / astropy latest / astropy / io / fits / diff / HeaderDiff / __init__
function
astropy.io.fits.diff:HeaderDiff.__init__
source: /astropy/io/fits/diff.py :700
Signature
def __init__ ( self , a , b , ignore_keywords = [] , ignore_comments = [] , rtol = 0.0 , atol = 0.0 , ignore_blanks = True , ignore_blank_cards = True ) Parameters
a: `~astropy.io.fits.Header` or string or bytesA header.
b: `~astropy.io.fits.Header` or string or bytesA header to compare to the first header.
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.
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.HeaderDiff.__init__