From 818198b646105c368818b690486165b953e5ec42 Mon Sep 17 00:00:00 2001 From: Sam Gamble Date: Wed, 5 Jun 2024 16:13:56 +0100 Subject: [PATCH] Fix oed_spec issue --- src/model_execution_worker/distributed_tasks.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/model_execution_worker/distributed_tasks.py b/src/model_execution_worker/distributed_tasks.py index fd12dfc75..2e3e94df4 100644 --- a/src/model_execution_worker/distributed_tasks.py +++ b/src/model_execution_worker/distributed_tasks.py @@ -535,12 +535,6 @@ def pre_analysis_hook(self, # OED has been loaded and check in this step, disable check in file gen # This is in case pre-exposure func has added non-standard cols to the file. params['check_oed'] = False - - # remove any pre-loaded files (only affects this worker) - oed_files = {v for k, v in params.items() if k.startswith('oed_') and isinstance(v, str)} - for filepath in oed_files: - if Path(filepath).exists(): - os.remove(filepath) else: logger.info('pre_analysis_hook: SKIPPING, param "exposure_pre_analysis_module" not set') params['log_location'] = filestore.put(kwargs.get('log_filename'))