Skip to content

Commit

Permalink
Making sure validation csv does not contain previous run scores in it
Browse files Browse the repository at this point in the history
  • Loading branch information
abodeuis committed Jun 12, 2024
1 parent 14759e5 commit ed36b81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ def main():
os.makedirs(args.output)
if args.feedback is not None and not os.path.exists(args.feedback):
os.makedirs(args.feedback)

# Delete old validation result file if it exists
if args.validation:
full_csv_path = os.path.join(args.output, '#validation_scores.csv')
if os.path.exists(full_csv_path):
os.remove(full_csv_path)

if args.amqp:
run_in_amqp_mode(args)
Expand Down

0 comments on commit ed36b81

Please sign in to comment.