MCPcopy Create free account
hub / github.com/Thinklab-SJTU/Bench2Drive / update_Success

Function update_Success

tools/ability_benchmark.py:36–46  ·  view source on GitHub ↗
(scenario_name, Success_Statistic, status)

Source from the content-addressed store, hash-verified

34 pass
35
36def update_Success(scenario_name, Success_Statistic, status):
37 if scenario_name not in Success_Statistic:
38 if status:
39 Success_Statistic[scenario_name] = [1, 1]
40 else:
41 Success_Statistic[scenario_name] = [0, 1]
42 else:
43 Success_Statistic[scenario_name][1] += 1
44 if status:
45 Success_Statistic[scenario_name][0] += 1
46 pass
47
48def get_position(xml_route):
49 waypoints_elem = xml_route.find('waypoints')

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected