

def checkUnique(l):
    'check if elements is list l are unique.'
    values = list(sorted(l))
    unique = set(values)
    if (len(values) != len(unique)):
        raise ValueError('non-unique option mappings')
    else:
        E.info('option list is unique')

dataset/ETHPy150Open CGATOxford/cgat/refactor/cgat_refactor.py checkUnique/original