Skip to content

Commit

Permalink
fix: make folder for the leftovers (QA_-1)
Browse files Browse the repository at this point in the history
  • Loading branch information
vejvarm committed Nov 28, 2023
1 parent d3422ca commit 08144ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lab/merge_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def copy_files(csqa_files, csqa_d2t_files, dest_directory, csqa_d2t_size):
folder_path = dest_directory / "QA_-1"
i = 0
pbar.set_postfix({'folder': f"{folder_path.name} ({len(csqa_folders)+1}/{len(csqa_folders)})"})
print(f"total before leftover: {pbar.n}")
while True:
try:
new_file_name = f"QA_{i}.json"
Expand Down

0 comments on commit 08144ae

Please sign in to comment.