{ } Raw JSON

bundles / astropy 7.0.1 / astropy / io / fits / diff / HDUDiff

class

astropy.io.fits.diff:HDUDiff

source: /astropy/io/fits/diff.py :455

Signature

class   HDUDiff ( a b ignore_keywords = [] ignore_comments = [] ignore_fields = [] numdiffs = 10 rtol = 0.0 atol = 0.0 ignore_blanks = True ignore_blank_cards = True )

Members

Summary

Diff two HDU objects, including their headers and their data (but only if both HDUs contain the same type of data (image, table, or unknown).

Extended Summary

HDUDiff objects have the following diff attributes:

  • diff_extnames: If the two HDUs have different EXTNAME values, this contains a 2-tuple of the different extension names.

  • diff_extvers: If the two HDUS have different EXTVER values, this contains a 2-tuple of the different extension versions.

  • diff_extlevels: If the two HDUs have different EXTLEVEL values, this contains a 2-tuple of the different extension levels.

  • diff_extension_types: If the two HDUs have different XTENSION values, this contains a 2-tuple of the different extension types.

  • diff_headers: Contains a HeaderDiff object for the headers of the two HDUs. This will always contain an object--it may be determined whether the headers are different through diff_headers.identical.

  • diff_data: Contains either a ImageDataDiff, TableDataDiff, or RawDataDiff as appropriate for the data in the HDUs, and only if the two HDUs have non-empty data of the same type (RawDataDiff is used for HDUs containing non-empty data of an indeterminate type).

Aliases

  • astropy.io.fits.HDUDiff