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

Function main

leaderboard/scripts/pretty_print_json.py:97–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96
97def main():
98 description = 'Create a human readable version of the scores provided by the leaderboard.\n'
99 # general parameters
100 parser = argparse.ArgumentParser(description=description, formatter_class=RawTextHelpFormatter)
101 parser.add_argument('-f', '--file', help='JSON file containing the results of the leaderboard', required=True)
102 parser.add_argument('--format', default='fancy_grid',
103 help='Format in which the table will be printed, e.g.: fancy_grid, latex, github, html, jira')
104 parser.add_argument('-o', '--output', help='Output file to print the results into')
105 arguments = parser.parse_args()
106
107 return prettify_json(arguments)
108
109
110if __name__ == '__main__':

Callers 1

Calls 1

prettify_jsonFunction · 0.85

Tested by

no test coverage detected