def dtype ( self ) : try : return self . data . dtype except AttributeError : return numpy . dtype ( '%s%d' % ( self . _sample_type , self . _sample_bytes ) )
python how do i know what data type
Pixel data type .
def dtype(self):
        """Pixel data type."""
        try:
            return self.data.dtype
        except AttributeError:
            return numpy.dtype('%s%d' % (self._sample_type, self._sample_bytes))