def apply(self, arr, bounds=None):
        bounds = bounds if bounds is not None else self.bounds
        index = ((arr[:, 0] >= bounds[0]) &
                 (arr[:, 1] >= bounds[1]) &
                 (arr[:, 0] <= bounds[2]) &
                 (arr[:, 1] <= bounds[3]))
        return arr[index, ...]
dataset/ETHPy150Open kwikteam/phy/phy/plot/transform.py/Clip.apply/original