From c3249ed60e475101a69cf9ecac55dad5789f3c19 Mon Sep 17 00:00:00 2001 From: foefl Date: Fri, 27 Feb 2026 15:07:40 +0100 Subject: [PATCH] add additional package folder --- src/KSG_anomaly_detection/_prepare_env.py | 28 +++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/src/KSG_anomaly_detection/_prepare_env.py b/src/KSG_anomaly_detection/_prepare_env.py index d6103b9..8aaf35f 100644 --- a/src/KSG_anomaly_detection/_prepare_env.py +++ b/src/KSG_anomaly_detection/_prepare_env.py @@ -16,16 +16,36 @@ def recreate_folder(folder_name: str) -> Path: def main() -> None: + paths_src: list[Path] = [] + paths_dst: list[Path] = [] + _ = recreate_folder("Daten") _ = recreate_folder("KI") - p_data = recreate_folder( - "./Verifizierdaten_1/20260225/614706_helles Entek/614706_helles Entek[3136761]_1" - ) + # packages p_orig_data = ( BASE_PATH / "_Originaldaten/614706_helles Entek/614706_helles Entek[3136761]_1" ) assert p_orig_data.exists(), "original data not existing" - shutil.copytree(p_orig_data, p_data, dirs_exist_ok=True) + paths_src.append(p_orig_data) + + p_data = recreate_folder( + "Verifizierdaten_1/20260225/614706_helles Entek/614706_helles Entek[3136761]_1" + ) + paths_dst.append(p_data) + + p_orig_data = ( + BASE_PATH / "_Originaldaten/614706_helles Entek/614706_helles Entek[3136761]_2" + ) + assert p_orig_data.exists(), "original data not existing" + paths_src.append(p_orig_data) + + p_data = recreate_folder( + "Verifizierdaten_1/20260225/614706_helles Entek/614706_helles Entek[3136761]_2" + ) + paths_dst.append(p_data) + + for src, dst in zip(paths_src, paths_dst): + shutil.copytree(src, dst, dirs_exist_ok=True) if __name__ == "__main__":