Skip to content

Commit

Permalink
Fix oed_spec issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sambles committed Jun 5, 2024
1 parent bf607db commit 818198b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/model_execution_worker/distributed_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 818198b

Please sign in to comment.