Skip to content

Commit ef33f1f

Browse files
recursixgasse
authored andcommitted
fix test
1 parent ad374fc commit ef33f1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/agentlab/analyze/inspect_results.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,9 @@ def summarize(sub_df, use_bootstrap=False):
295295
avg_steps=sub_df["n_steps"].mean(skipna=True).round(3),
296296
n_completed=f"{n_completed}/{len(sub_df)}",
297297
n_err=err.sum(skipna=True),
298-
cum_cost=sub_df["stats.cum_cost"].sum(skipna=True).round(4),
299298
)
299+
if "stats.cum_cost" in sub_df:
300+
record["cum_cost"]=sub_df["stats.cum_cost"].sum(skipna=True).round(4),
300301

301302
return pd.Series(record)
302303

0 commit comments

Comments
 (0)