braincore.util.unique_name

Contents

braincore.util.unique_name#

braincore.util.unique_name(name=None, self=None)[source]#

Get the unique name for this object.

Parameters:
  • name (str, optional) – The expected name. If None, the default unique name will be returned. Otherwise, the provided name will be checked to guarantee its uniqueness.

  • self (str, optional) – The name of this class, used for object naming.

Returns:

name – The unique name for this object.

Return type:

str