def fftw_dst_ref(type, size, dt):
    x = np.linspace(0, size-1, size).astype(dt)
    dt = np.result_type(np.float32, dt)
    if dt == np.double:
        data = FFTWDATA_DOUBLE
    elif dt == np.float32:
        data = FFTWDATA_SINGLE
    else:
        raise ValueError()
    y = (data[(type, size) % 'dst_%d_%d']).astype(dt)
    return x, y, dt
dataset/ETHPy150Open scipy/scipy/scipy/fftpack/tests/test_real_transforms.py/fftw_dst_ref/swapped operands of `%`