Skip to content

Commit

Permalink
Added latest code
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-schesch committed Sep 23, 2024
1 parent 05c01b9 commit 88f0467
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/python/latex_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,18 @@ def main():

print(f"CSV saved to: {csv_filename}")
print(f"Rows: {len(filtered_df)}")

for merge_tool in MERGE_TOOL:
result_df[merge_tool.name + "_raw"] = result_df[merge_tool.name]
for idx, row in result_df.iterrows():
for merge_tool in MERGE_TOOL:
if "plus" in merge_tool.name:
continue
result1 = row[merge_tool.name]
result2 = row[merge_tool.name + "_plus"]
if result1.name == MERGE_STATE.Merge_failed.name \
and result2.name == TEST_STATE.Tests_failed.name:
result_df.loc[idx, merge_tool.name] = TEST_STATE.Tests_failed.name

result_df.to_csv(args.output_dir / "result.csv", index_label="idx")

Expand Down

0 comments on commit 88f0467

Please sign in to comment.