MCPcopy Create free account
hub / github.com/InternScience/InternAgent / main

Function main

internagent/vis_tree.py:182–194  ·  view source on GitHub ↗

Main function for standalone execution.

()

Source from the content-addressed store, hash-verified

180
181
182def main():
183 """Main function for standalone execution."""
184 # NOTE: add trajectory to the JSON file containing ideas
185 JSON_FILE = ''
186
187 if not JSON_FILE:
188 print("Error: Please set JSON_FILE variable to the path of your JSON file.")
189 return
190
191 name = JSON_FILE.split("/")[-1].split(".")[0]
192 OUTPUT_PDF = f'tree_{name}.pdf'
193
194 vis_tree(JSON_FILE, OUTPUT_PDF)
195
196
197if __name__ == "__main__":

Callers 1

vis_tree.pyFile · 0.70

Calls 1

vis_treeFunction · 0.85

Tested by

no test coverage detected