mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 04:44:59 +00:00
fix: Add debug prints and check for empty data in over_time.py
This commit is contained in:
parent
56975d02a1
commit
d2479f30f7
1 changed files with 12 additions and 0 deletions
|
@ -12,11 +12,23 @@ def plot_over_time(yaml_file):
|
||||||
pass_rates = []
|
pass_rates = []
|
||||||
models = []
|
models = []
|
||||||
|
|
||||||
|
print("Debug: Raw data from YAML file:")
|
||||||
|
print(data)
|
||||||
|
|
||||||
for entry in data:
|
for entry in data:
|
||||||
if "released" in entry and "pass_rate_2" in entry:
|
if "released" in entry and "pass_rate_2" in entry:
|
||||||
dates.append(entry["released"])
|
dates.append(entry["released"])
|
||||||
pass_rates.append(entry["pass_rate_2"])
|
pass_rates.append(entry["pass_rate_2"])
|
||||||
models.append(entry["model"].split("(")[0].strip())
|
models.append(entry["model"].split("(")[0].strip())
|
||||||
|
|
||||||
|
print("Debug: Processed data:")
|
||||||
|
print("Dates:", dates)
|
||||||
|
print("Pass rates:", pass_rates)
|
||||||
|
print("Models:", models)
|
||||||
|
|
||||||
|
if not dates or not pass_rates:
|
||||||
|
print("Error: No data to plot. Check if the YAML file is empty or if the data is in the expected format.")
|
||||||
|
return
|
||||||
|
|
||||||
plt.rcParams["hatch.linewidth"] = 0.5
|
plt.rcParams["hatch.linewidth"] = 0.5
|
||||||
plt.rcParams["hatch.color"] = "#444444"
|
plt.rcParams["hatch.color"] = "#444444"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue