Skip to content

Commit e16306f

Browse files
author
Dylan Huang
committed
comment out saving logs code
1 parent a5c701e commit e16306f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

eval_protocol/pytest/evaluation_test.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,23 @@ def _extract_effort_tag(params: dict) -> str | None:
596596
# Do not fail evaluation if summary writing fails
597597
pass
598598

599+
# # Write all rows from active_logger.read() to a JSONL file in the same directory as the summary
600+
# try:
601+
# if active_logger is not None:
602+
# rows = active_logger.read()
603+
# # Write to a .jsonl file alongside the summary file
604+
# jsonl_path = "logs.jsonl"
605+
# import json
606+
607+
# with open(jsonl_path, "w", encoding="utf-8") as f_jsonl:
608+
# for row in rows:
609+
# json.dump(row.model_dump(exclude_none=True, mode="json"), f_jsonl)
610+
# f_jsonl.write("\n")
611+
# except Exception as e:
612+
# # Do not fail evaluation if log writing fails
613+
# print(e)
614+
# pass
615+
599616
# Check threshold after logging
600617
if threshold_of_success is not None and not passed:
601618
assert (

0 commit comments

Comments
 (0)