{ } Raw JSON

bundles / astropy latest / astropy / io / fits / hdu / image / _ImageBaseHDU / _convert_pseudo_integer

function

astropy.io.fits.hdu.image:_ImageBaseHDU._convert_pseudo_integer

source: /astropy/io/fits/hdu/image.py:784

Signature

def _convert_pseudo_integer(self, data)

Summary

Handle "pseudo-unsigned" integers, if the user requested it. Returns the converted data array if so; otherwise returns None.

Extended Summary

In this case case, we don't need to handle BLANK to convert it to NAN, since we can't do NaNs with integers, anyway, i.e. the user is responsible for managing blanks.

Aliases

  • astropy.io.fits.hdu.image._ImageBaseHDU._convert_pseudo_integer