def ds_qquantize(y, n):
    """Quadrature quantization
    """
    if np.isreal(n):
        v = ds_quantize(np.real(y), n) + 1j*ds_quantize(np.imag(y), n)
    else:
        ytmp = np.concatenate((np.real(y) + np.imag(y),
                               np.imag(y) - np.real(y)))
        v = np.dot(ds_quantize(ytmp, np.abs(n)),
                   np.array([[1 + 1j], [1 - 1j]]))/2.
    return v
dataset/ETHPy150Open ggventurini/python-deltasigma/deltasigma/_simulateQDSM_core.py/ds_qquantize/swapped operands of `-`