Skip to content

Commit

Permalink
Added update/removal checking for empty dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
dwest77a committed Feb 6, 2024
1 parent b18ca04 commit 17afea1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pipeline/compute/serial_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,17 @@ def __init__(self,
self.proj_dir = f'{self.workdir}/in_progress/{self.proj_code}'

if 'update' in cfg:
self.updates = cfg['update']
try:
self.updates = dict(cfg['update'])
except ValueError:
logger.warning('Updates attribute not read')
self.updates = {}
if 'remove' in cfg:
self.removals = cfg['remove']
try:
self.removals = dict(cfg['remove'])
except ValueError:
logger.warning('Removal attribute not read')
self.removals = {}

if 'type' in detail:
self.use_json = (detail['type'] == 'JSON')
Expand Down

0 comments on commit 17afea1

Please sign in to comment.