dtype_info_name#
- astropy.utils.data_info.dtype_info_name(dtype)[source]#
Return a human-oriented string name of the
dtype
arg. This can be use by astropy methods that present type information about a data object.The output is mostly equivalent to
dtype.name
which takes the form <type_name>[B] where <type_name> is likeint
orbool
and [B] is an optional number of bits which gets included only for numeric types.The output is shown below for
bytes
andstr
types, with <N> being the number of characters. This representation corresponds to the Python type that matches the dtype:Numpy S<N> U<N> Python bytes<N> str<N>
- Parameters:
- dtype
str
,dtype
, type Input as an object that can be converted via
numpy.dtype
.
- dtype
- Returns:
- dtype_info_name
str
String name of
dtype
- dtype_info_name