def _get_tbl_numpy_dtype(self, colnum, include_endianness=True):
table_type = self._info['<STR_LIT>']<EOL>table_type_string = _hdu_type_map[table_type]<EOL>try:<EOL><INDENT>ftype = self._info['<STR_LIT>'][colnum]['<STR_LIT>']<EOL>if table_type == ASCII_TBL:<EOL><INDENT>npy_type = _table_fits2npy_ascii[abs(ftype)]<EOL><DEDENT>else:<EOL><INDENT>npy_type = _table_fits2npy[abs(ftype)]<EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>raise KeyError("<STR_LIT>"<EOL>"<STR_LIT>" % (table_type_string, ftype))<EOL><DEDENT>istbit = False<EOL>if (ftype == <NUM_LIT:1>):<EOL><INDENT>istbit = True<EOL><DEDENT>isvar = False<EOL>if ftype < <NUM_LIT:0>:<EOL><INDENT>isvar = True<EOL><DEDENT>if include_endianness:<EOL><INDENT>if table_type == ASCII_TBL:<EOL><INDENT>addstr = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>addstr = '<STR_LIT:>>'<EOL><DEDENT>if npy_type not in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT:S>', '<STR_LIT>']:<EOL><INDENT>npy_type = addstr+npy_type<EOL><DEDENT><DEDENT>if npy_type == '<STR_LIT:S>':<EOL><INDENT>width = self._info['<STR_LIT>'][colnum]['<STR_LIT:width>']<EOL>npy_type = '<STR_LIT>' % width<EOL><DEDENT>elif npy_type == '<STR_LIT>':<EOL><INDENT>width = self._info['<STR_LIT>'][colnum]['<STR_LIT:width>']<EOL>npy_type = '<STR_LIT>' % width<EOL><DEDENT>return npy_type, isvar, istbit<EOL>
Get numpy type for the input column