From 7e74936bed1679e3919227619230ab1a82745b26 Mon Sep 17 00:00:00 2001 From: Jake Smith <jws52@cam.ac.uk> Date: Fri, 25 Feb 2022 15:05:32 +0000 Subject: [PATCH] fix: Raise error for incorrect deposition input --- ProcessorComponents.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ProcessorComponents.py b/ProcessorComponents.py index fe5bb1b..6af63c1 100644 --- a/ProcessorComponents.py +++ b/ProcessorComponents.py @@ -1088,8 +1088,9 @@ def process_in_job_dep(jobPath,status,config,component): # basic check that contents are as expected # 132 files of NAME .txt timesteps and one summary png file if len(glob(f"{jobPath}/{file_name}/deposition_srcs_allregions_C1_T*.txt")) != 56: - logger.warning(f"Insufficient contents of input tar file (are sources.txt and sourcelocations.txt missing?)") - + msg = f"Unexpect number of deposition .txt files in input tar file. Expected 56." + logger.error(msg) + raise RuntimeError(msg) return def create_epi_config_string(config,jobPath,startString,endString): -- GitLab