Main function for standalone execution.
()
| 180 | |
| 181 | |
| 182 | def 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 | |
| 197 | if __name__ == "__main__": |