astropy 5.0

Parameters
__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

$$\left| a - b \right| > \text{atol} + \text{rtol} \cdot \left| b \right|$$

are considered to be different. The underlying function used for comparison is numpy.allclose .

versionadded
atol : float, optional

The allowed absolute difference. See also rtol parameter.

versionadded

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /astropy/io/fits/diff.py#1197
type: <class 'function'>
Commit: