From 45e1877eb6e689d8df65eea53feb53e0234e8754 Mon Sep 17 00:00:00 2001 From: Tamas Mona <tm689@cam.ac.uk> Date: Tue, 6 Sep 2022 12:23:19 +0100 Subject: [PATCH] feat: WRSIS start_date provided from run config. Date formating is necessery for the WRSIS API. --- ProcessorSurveys.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProcessorSurveys.py b/ProcessorSurveys.py index 686aac8..10d6298 100644 --- a/ProcessorSurveys.py +++ b/ProcessorSurveys.py @@ -671,7 +671,7 @@ def get_WRSIS_form_as_csv(form_credentials: dict, jobPath: str, config: dict, st download_success = True - start_date = datetime.datetime.strptime('01-03-2022','%d-%m-%Y').strftime('%d-%m-%Y') #TODO: set start date + start_date = datetime.datetime.strptime(config['Survey']['SeasonStartString'],'%Y%m%d').strftime('%d-%m-%Y') end_date = datetime.datetime.strptime(config['StartString'], '%Y%m%d').strftime('%d-%m-%Y') logger.debug(f'Performing download from WRSIS between {start_date} and {end_date}') @@ -940,7 +940,7 @@ def process_in_job_survey(jobPath,status,config,component): Path(output_directory).mkdir(parents=True, exist_ok=True) if call_R: - + cluster_calc_path = "/storage/app/EWS_prod/code/wheat_source_generation/" # clear old output -- GitLab