Home Examples Installation Documentation Contact Help

generate_unique_name

Specification

Location Author Maintained by
isl/simulators/prox_rigid_bodies/api.py Kenny Erleben DIKU

Purpose & Params

This function helps to generate unique names, such that one can always locate objects based on name only.

:param name:   The original name wanted.
:return:       pre and post appended name string that makes name unique.

Example

import isl.simulators.prox_rigid_bodies.api as api

test_name   = "Name"
unique_name_1 = api.generate_unique_name(test_name)
unique_name_2 = api.generate_unique_name(test_name)

unique_name_1 == unique_name_2

output:

false