Skip to content

Commit f536e9f

Browse files
committed
Workflow parser: Fix WORKFLOWMODE_FILE setting, and fix command line for WORKFLOWMODE != dds
1 parent 95a208d commit f536e9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

DATA/tools/parse

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ for line in f:
114114
print('Adding', wf[0], 'workflow (', wf[2], '-', wf[1], 'nodes):', wf[3])
115115
reconodes = max(reconodes, int(wf[1]))
116116
reconodesmin = max(reconodesmin, int(wf[2]))
117-
command_preopt = 'GEN_TOPO_CALIB_WORKFLOW=' + str(is_calib_workflow) + ' ${WORKFLOWMODE_FILE}=' + filename
117+
if reco_num_nodes_override == 0:
118+
os.environ['RECO_NUM_NODES_WORKFLOW'] = wf[1]
119+
command_preopt = 'GEN_TOPO_CALIB_WORKFLOW=' + str(is_calib_workflow)
120+
if os.environ['WORKFLOWMODE'] == 'dds':
121+
command_preopt += ' WORKFLOWMODE_FILE=' + filename
118122
command = command_preopt + ' GLOBALDPLOPT+=" -b --dds-workflow-suffix _' + wf[0] + str(i) + '" ' + wf[3]
119123
if os.environ['WORKFLOWMODE'] == 'print':
120124
command += ' > ' + filename

0 commit comments

Comments
 (0)