{ } Raw JSON

bundles / astropy 7.0.1 / astropy / io / fits / column / python_to_tdisp

function

astropy.io.fits.column:python_to_tdisp

source: /astropy/io/fits/column.py :2686

Signature

def   python_to_tdisp ( format_string logical_dtype = False )

Summary

Turn the Python format string to a TDISP FITS compliant format string. Not all formats convert. these will cause a Warning and return None.

Parameters

format_string : str

TDISPn FITS Header keyword. Used to specify display formatting.

logical_dtype : bool

True is this format type should be a logical type, 'L'. Needs special handling.

Returns

: tdsip_string: str

The TDISPn keyword string translated into a Python format string.

Aliases

  • astropy.io.fits.column.python_to_tdisp