bundles / astropy 7.0.1 / astropy / io / fits / diff / _BaseDiff / report
function
astropy.io.fits.diff:_BaseDiff.report
source: /astropy/io/fits/diff.py :138
Signature
def report ( self , fileobj = None , indent = 0 , overwrite = False ) Summary
Generates a text report on the differences (if any) between two objects, and either returns it as a string or writes it to a file-like object.
Parameters
fileobj: file-like, string, or None, optionalIf
None, this method returns the report as a string. Otherwise it returnsNoneand writes the report to the given file-like object (which must have a.write()method at a minimum), or to a new file at the path specified.indent: intThe number of 4 space tabs to indent the report.
overwrite: bool, optionalIf
True, overwrite the output file if it exists. Raises anOSErrorifFalseand the output file exists. Default isFalse.
Returns
report: str or None
Aliases
-
astropy.io.fits.diff._BaseDiff.report