uniquename#

uniquename(name=None, namelist=None, style=None)[source]#

Given a name and a list of other names, find a replacement to the name that doesn’t conflict with the other names, and pass it back.

Example:

name = sc.uniquename(name='file', namelist=['file', 'file (1)', 'file (2)'])