From fac2204c0f21f3334d28cf1aa08b002f39d0e09e Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 13 Jul 2023 13:02:43 -0700 Subject: [PATCH] rm temp files --- src/temp.py | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/temp.py diff --git a/src/temp.py b/src/temp.py deleted file mode 100644 index e8a9d72..0000000 --- a/src/temp.py +++ /dev/null @@ -1,14 +0,0 @@ -import os -import shutil -from pathlib import Path - -import pandas as pd - -for file in Path(".").rglob("detections.csv"): - if len(pd.read_csv(file)): - new_filename = Path(file.resolve().parent) / ( - str(file.resolve().parent).rsplit("/")[-1] + "_" + file.stem + ".csv" - ) - # npy_file = list(Path(file[0].resolve().parent).glob("*.npy"))[0] - print(new_filename) - file.rename(new_filename)