'Check that the indices from interpolation match those after clipping to the
valid table range.  The IERS_Auto class is exempted as long as it has
sufficiently recent available data so the clipped interpolation is
always within the confidence bounds of current Earth rotation
knowledge.'

def _check_interpolate_indices(self, indices_orig, indices_clipped, max_input_mjd):

    predictive_mjd = self.meta[u'predictive_mjd']
    auto_max_age = (conf.auto_max_age if (conf.auto_max_age is not None) else np.finfo(np.float).max)
    if ((max_input_mjd > predictive_mjd) and ((self.time_now.mjd - predictive_mjd) > auto_max_age)):
        raise ValueError(INTERPOLATE_ERROR)
