find_name function

(Shortest import: from brian2.core.names import find_name)

brian2.core.names.find_name(name, names=None)[source]

Determine a unique name. If the desired name is already taken, will try to use a derived name_1, name_2, etc.


name : str

The desired name.

names : Iterable, optional

A set of names that are already taken. If not provided, will use the names of all Brian objects as stored in Nameable.


unique_name : str

A name based on name or name itself, unique with respect to the names in names.