Skip to content

Commit

Permalink
Remove the scan option prior to scan iteration.
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLoney committed Jun 19, 2017
1 parent d211ea2 commit b059e40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qipipe/pipeline/qipipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ def _run_with_dicom_input(actions, *inputs, **opts):
# If the only action is ROI, then the input session directories
# have already been staged. Therefore, set the skip_existing
# flag to False.
iter_opts = dict(scan=opts['scan']) if 'scan' in opts else {}
iter_opts = {}
scan_opt = opts.pop('scan', None)
if scan_opt:
iter_opts['scan'] = scan_opt
if actions == ['roi']:
iter_opts['skip_existing'] = False
for scan_input in iter_stage(project, collection, *inputs, **iter_opts):
Expand Down

0 comments on commit b059e40

Please sign in to comment.