MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / get_actor_display_name

Function get_actor_display_name

PythonAPI/examples/automatic_control.py:77–79  ·  view source on GitHub ↗
(actor, truncate=250)

Source from the content-addressed store, hash-verified

75
76
77def get_actor_display_name(actor, truncate=250):
78 name = ' '.join(actor.type_id.replace('_', '.').title().split('.')[1:])
79 return (name[:truncate - 1] + u'\u2026') if len(name) > truncate else name
80
81
82# ==============================================================================

Callers 3

restartMethod · 0.70
tickMethod · 0.70
_on_collisionMethod · 0.70

Calls 1

titleMethod · 0.45

Tested by

no test coverage detected