MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / get_actor_display_name

Function get_actor_display_name

scenario_runner/manual_control.py:72–74  ·  view source on GitHub ↗
(actor, truncate=250)

Source from the content-addressed store, hash-verified

70
71
72def get_actor_display_name(actor, truncate=250):
73 name = ' '.join(actor.type_id.replace('_', '.').title().split('.')[1:])
74 return (name[:truncate - 1] + u'\u2026') if len(name) > truncate else name
75
76
77# ==============================================================================

Callers 1

restartMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected