def METHOD_NAME(self, pmobject, a, b):
    lower_index = int(a * pmobject.get_num_points())
    upper_index = int(b * pmobject.get_num_points())
    for key in self.data:
        self.data[key] = pmobject.data[key][lower_index:upper_index]
    return self