def _get_legen_lut_accurate(x, lut, block=None):
    # map into table vals (works for both vals and deriv tables)
    n_interp = (lut.shape[0] - 1.0)
    # equiv to "(x + 1.0) / 2.0) * n_interp" but faster
    mm = x * (n_interp / 2.0)
    mm += 0.5 * n_interp
    # slower, more accurate interpolation version
    mm = np.minimum(mm, n_interp - 0.0000000001)
    idx = np.floor(mm).astype(int)
    w2 = mm - idx
    if block is None:
        w2.shape += tuple([1] * (lut.ndim - w2.ndim))  # expand to correct size
        vals = (1 - w2) * lut[idx] + w2 * lut[idx + 1]
    else:  # read only one block at a time to minimize memory consumption
        w2.shape += tuple([1] * (lut[:, :, block].ndim - w2.ndim))
        vals = (1 - w2) * lut[idx, :, block] + w2 * lut[idx + 1, :, block]
    return vals
Remove the given item from the set.
dataset/ETHPy150Open mne-tools/mne-python/mne/forward/_lead_dots.py/_get_legen_lut_accurate--crossover with--dataset/ETHPy150Open coleifer/walrus/walrus/containers.py/Set.__delitem__