'Only use data points withing given time range.'

def InTimeRange(self, range_start, range_end):

    if (self.time_series is None):
        raise RuntimeError('InTimeRange    must    be    called    after    Take*().')
    if (range_start is None):
        raise ValueError("range_start    can't    be    None")
    if (range_end is None):
        raise ValueError("range_end    can't    be    None")
    for time_serie in self.time_series:
        time_serie.FilterRange(start_time=range_start, stop_time=range_end)
    return self
