From 81797e1646c8e8b9c882fc55eaa85fae25e5c785 Mon Sep 17 00:00:00 2001 From: lb584 <lb584@cam.ac.uk> Date: Wed, 29 May 2024 13:51:29 +0100 Subject: [PATCH] filename change --- ews/coordinator/utils/processor_utils.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ews/coordinator/utils/processor_utils.py b/ews/coordinator/utils/processor_utils.py index 02318fb..09da9c3 100644 --- a/ews/coordinator/utils/processor_utils.py +++ b/ews/coordinator/utils/processor_utils.py @@ -37,6 +37,7 @@ short_name = { 'Survey' : 'SURVEYDATA', 'Scraper' : 'SCRAPER', 'MetResample' : 'MET_RESAMPLE', + 'Meteorology' : 'Meteorology', } disease_latin_name_dict = { @@ -429,12 +430,7 @@ def get_input_data(job_path, config, component): #TODO: check if file exists already (may be the case for multiple configs in one) # TODO: perform ssh file transfer in python instead of subprocess - server_name: str = config['ServerName'] - if server_name == "": - cmd_scp: list = ["scp", f"{file_path}/{file_name}.tar.gz", job_path] - else: - cmd_scp: list = ["scp", "-i", config['ServerKey'], "-o", "StrictHostKeyChecking=no", - f"{server_name}:{file_path}/{file_name}.tar.gz", job_path] + cmd_scp: list = ["scp", f"{file_path}/{file_name}.tar.gz", job_path] description_short = 'env2 scp' description_long = 'Copying file from remote server to job directory' -- GitLab