def dtype(self):
        """Pixel data type."""
        try:
            return self.data.dtype
        except AttributeError:
            return numpy.dtype('%s%d' % (self._sample_type, self._sample_bytes))
def dtype ( self ) : try : return self . data . dtype except AttributeError : return numpy . dtype ( '%s%d' % ( self . _sample_type , self . _sample_bytes ) )
Pixel data type.