def torder2t2i(torder):
    if inspect.isfunction(torder):
        return torder
    elif torder == 'flat' or torder == 'f':
        return fileiobase.trace2index_flat
    elif torder == 'opposite' or torder == 'o':
        return fileiobase.trace2index_opp
    elif torder == 'regular' or torder == 'r':
        return fileiobase.trace2index_reg
    else:
        raise ValueError("unknown torder" + str(torder))
Convert torder to a trace2index functions
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/varian.py/torder2t2i