bundles / astropy latest / 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: strTDISPn FITS Header keyword. Used to specify display formatting.
logical_dtype: boolTrue is this format type should be a logical type, 'L'. Needs special handling.
Returns
: tdsip_string: strThe TDISPn keyword string translated into a Python format string.
Aliases
-
astropy.io.fits.column.python_to_tdisp