def METHOD_NAME(self, gantry_angle, gantry_angle_tol):
    near_angle = np.abs(np.array(self.gantry) - gantry_angle) <= gantry_angle_tol
    assert np.all(np.diff(np.where(near_angle)[0]) == 1)
    return near_angle