From 20168ce5a64d65335e3bb5697ffe62d92cfc1ea0 Mon Sep 17 00:00:00 2001 From: anujavenkatachalam04 Date: Fri, 27 Dec 2024 16:58:30 +0530 Subject: [PATCH] script to run epipipeline fn to upload ka files --- src/EP0005DS0014-KA_Dengue_LL/upload_ka_ll.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/EP0005DS0014-KA_Dengue_LL/upload_ka_ll.py diff --git a/src/EP0005DS0014-KA_Dengue_LL/upload_ka_ll.py b/src/EP0005DS0014-KA_Dengue_LL/upload_ka_ll.py new file mode 100644 index 0000000..5674c83 --- /dev/null +++ b/src/EP0005DS0014-KA_Dengue_LL/upload_ka_ll.py @@ -0,0 +1,18 @@ +import epipipeline +from epipipeline.upload.ka_dengue_upload import (unzip_folder, rename_ka_dengue, upload_ka_dengue) + +epipipeline.logging_config.setup_logging('DEBUG') +dataio.logging_config.setup_logging('INFO') + +# unzip folder +unzipped_dir = unzip_folder() + +# rename files +file_dir = rename_ka_dengue(directory = unzipped_dir) + +# upload files +result = upload_ka_dengue(directory = file_dir) + +# check if any files are missing/not uploaded +if result != []: + logging.warning(f"Files not uploaded {result}")