MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / _get_criteria

Method _get_criteria

scenario_runner/metrics_manager.py:81–91  ·  view source on GitHub ↗

Parses the criteria argument into a dictionary

(self, criteria_file)

Source from the content-addressed store, hash-verified

79 return recorder_str
80
81 def _get_criteria(self, criteria_file):
82 """
83 Parses the criteria argument into a dictionary
84 """
85 if criteria_file:
86 with open(criteria_file) as fd:
87 criteria_dict = json.load(fd)
88 else:
89 criteria_dict = None
90
91 return criteria_dict
92
93 def _get_metric_class(self, metric_file):
94 """

Callers 1

__init__Method · 0.95

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected