Skip to content

Commit

Permalink
top-level inDS in WF
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaeno committed Oct 20, 2021
1 parent 5d9dfd9 commit 9246e6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pandaserver/workflow/workflow_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,11 @@ def make_task_params(self, task_template, id_map):
else:
in_ds_suffix = dict_inputs['opt_inDsType']
if is_list_in_ds:
in_ds_str = ','.join(['{}_{}/'.format(s1, s2) for s1, s2 in zip(dict_inputs['opt_inDS'],
in_ds_suffix)])
in_ds_str = ','.join(['{}_{}/'.format(s1, s2) if s2 else s1 for s1, s2
in zip(dict_inputs['opt_inDS'], in_ds_suffix)])
else:
in_ds_str = '{}_{}/'.format(dict_inputs['opt_inDS'], in_ds_suffix)
in_ds_str = '{}_{}/'.format(dict_inputs['opt_inDS'], in_ds_suffix) if in_ds_suffix \
else dict_inputs['opt_inDS']
com += ['--inDS', in_ds_str, '--notExpandInDS', '--notExpandSecDSs']
com += ['--outDS', task_name]
if container_image:
Expand Down

0 comments on commit 9246e6d

Please sign in to comment.