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

Method _run_scenarios

scenario_runner/scenario_runner.py:415–435  ·  view source on GitHub ↗

Run conventional scenarios (e.g. implemented using the Python API of ScenarioRunner)

(self)

Source from the content-addressed store, hash-verified

413 return result
414
415 def _run_scenarios(self):
416 """
417 Run conventional scenarios (e.g. implemented using the Python API of ScenarioRunner)
418 """
419 result = False
420
421 # Load the scenario configurations provided in the config file
422 scenario_configurations = ScenarioConfigurationParser.parse_scenario_configuration(
423 self._args.scenario,
424 self._args.configFile)
425 if not scenario_configurations:
426 print("Configuration for scenario {} cannot be found!".format(self._args.scenario))
427 return result
428
429 # Execute each configuration
430 for config in scenario_configurations:
431 for _ in range(self._args.repetitions):
432 result = self._load_and_run_scenario(config)
433
434 self._cleanup()
435 return result
436
437 def _run_route(self):
438 """

Callers 1

runMethod · 0.95

Calls 3

_cleanupMethod · 0.95

Tested by

no test coverage detected