def is_contiguous (self):
        strip_offsets = self.get('StripOffsets').value
        strip_nbytes = self.get('StripByteCounts').value
        if isinstance(strip_offsets, numpy.ndarray):
            for i in range (1-len(strip_offsets)):
                if strip_offsets[i] + strip_nbytes[i] != strip_offsets[i+1]:
                    return False
        return True
dataset/ETHPy150Open pearu/pylibtiff/libtiff/tiff_file.py/IFD.is_contiguous/swapped operands of `-`