MCPcopy Index your code
hub / github.com/algorithmicsuperintelligence/openevolve / data

Function data

scripts/visualizer.py:113–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111
112@app.route("/api/data")
113def data():
114 global checkpoint_dir
115 base_folder = os.environ.get("EVOLVE_OUTPUT", "examples/")
116 checkpoint_dir = find_latest_checkpoint(base_folder)
117 if not checkpoint_dir:
118 logger.info(f"No checkpoints found in {base_folder}")
119 return jsonify({"archive": [], "nodes": [], "edges": [], "checkpoint_dir": ""})
120
121 logger.info(f"Loading data from checkpoint: {checkpoint_dir}")
122 data = load_evolution_data(checkpoint_dir)
123 logger.debug(f"Data: {data}")
124 return jsonify(data)
125
126
127@app.route("/program/<program_id>")

Callers

nothing calls this directly

Calls 3

find_latest_checkpointFunction · 0.85
load_evolution_dataFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected