{ } Raw JSON

bundles / astropy latest / astropy / io / fits / diff / TableDataDiff / __init__

function

astropy.io.fits.diff:TableDataDiff.__init__

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

Signature

def   __init__ ( self a b ignore_fields = [] numdiffs = 10 rtol = 0.0 atol = 0.0 )

Parameters

a : BaseHDU

An HDU object.

b : BaseHDU

An HDU object to compare to the first HDU object.

ignore_fields : sequence, optional

The (case-insensitive) names of any table columns to ignore if any table data is to be compared.

numdiffs : int, optional

The 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, optional

The 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, optional

The allowed absolute difference. See also rtol parameter.

Aliases

  • astropy.io.fits.TableDataDiff.__init__