def contains(self, x, y):
        if not self.defined():
            raise UndefinedROI()

        coord = x if self.ori == 'x' else y
        return (coord > self.min) & (self.max < coord)
dataset/ETHPy150Open glue-viz/glue/glue/core/roi.py/RangeROI.contains/swapped operands of `<`