def get_exttype(self, num=False):
if num:<EOL><INDENT>return self._info['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>name = _hdu_type_map[self._info['<STR_LIT>']]<EOL>return name<EOL><DEDENT>
Get the extension type

By default the result is a string that mirrors
the enumerated type names in cfitsio
    'IMAGE_HDU', 'ASCII_TBL', 'BINARY_TBL'
which have numeric values
    0 1 2
send num=True to get the numbers.  The values
    fitsio.IMAGE_HDU .ASCII_TBL, and .BINARY_TBL
are available for comparison

parameters
----------
num: bool, optional
    Return the numeric values.