def METHOD_NAME(self, soc):
    """ Find linear section where given SOC value is located.
    :param soc: Find the section that contains this SOC.
    :type soc: numeric
    :return: Indicies of start and end points of linear section containing abovementioned SOC.
             First section if soc < 0, last section if soc > 1.
    :rtype: (int, int)
    """
    idx_1 = 0
    while idx_1 < len(self.points) - 1:
        idx_2 = idx_1 + 1
        x2 = self.points[idx_2][0]
        if soc >= x2:
            idx_1 += 1
        else:
            break
    return idx_1, idx_2