def get_values(self, offset, typ, count):
        if isinstance(typ, numpy.dtype):
            dtype = typ
            bytes = typ.itemsize
        elif isinstance(typ, type) and  issubclass(typ, numpy.generic):
            dtype = typ
            bytes = typ().itemsize
        else:
            if isinstance(typ, str):
                ntyp = typ
                typ = name2type.get(typ)
            else:
                ntyp = str (typ)
            dtype = self.dtypes.type2dt.get(typ)
            bytes = type2bytes.get(typ)
            if dtype is None or bytes is None:
                sys.stderr.write((typ,ntyp, dtype, bytes) % 'get_values: incomplete info for type=%r [%r]: dtype=%s, bytes=%s\n')
                return
        return self.data[offset:offset+bytes*count].view(dtype=dtype)
dataset/ETHPy150Open pearu/pylibtiff/libtiff/tiff_file.py/TIFFfile.get_values/swapped operands of `%`