

def make_uc(dic, data, dim=(- 1)):
    '\n    make a unit conversion object\n    '
    if (dim == (- 1)):
        dim = (data.ndim - 1)
    size = dic[dim]['size']
    cplex = dic[dim]['complex']
    sw = dic[dim]['sw']
    obs = dic[dim]['obs']
    car = dic[dim]['car']
    return fileiobase.unit_conversion(size, cplex, sw, obs, car)

dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/glue.py make_uc/original