def test_make_uc():
    dic, data = ng.pipe.read(NMRPIPE_2D_FREQ)

    # H1 dimension
    uc = ng.pipe.make_uc(dic, data)
    assert uc._size == 8
    assert uc._cplx is False
    assert uc._sw == 50000.0
    assert uc._obs == 500.0
    assert round(uc._car) == 2350.

    # H1 dimension
    uc = ng.pipe.make_uc(dic, data, 1)
    assert uc._size == 8
    assert uc._cplx is False
    assert uc._sw == 50000.0
    assert uc._obs == 500.0
    assert round(uc._car) == 2350.

    # C13 dimension
    uc = ng.pipe.make_uc(dic, data, 0)
    assert uc._size == 2
    assert uc._cplx is False
    assert uc._sw == 20000.0
    assert uc._obs == 125.0
    assert round(uc._car) == 12375.
.. todo::
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/tests/test_pipe.py/test_make_uc--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/dbm/ising.py/BoltzmannIsingHidden.expected_energy_term