Skip to content

Commit 28f7d8b

Browse files
committed
Workflow parser: sort calib workflows according to required CPU cores descending
1 parent e06a938 commit 28f7d8b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

DATA/tools/parse

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ for line in f:
200200
odccommand += ' --n ' + str(reconodes)
201201
odccommand += ' --nmin ' + str(reconodesmin) # Currently disabled, since odc-epn-topo does not accept --nmin
202202
if len(calibworkflows):
203+
calibworkflowsdds.sort(key=lambda x:int(x.split(':')[1])*-1)
203204
odccommand += ' --calib ' + ' '.join(calibworkflowsdds)
204205
if 'GEN_TOPO_STDERR_LOGGING' in os.environ and int(os.environ['GEN_TOPO_STDERR_LOGGING']):
205206
odccommand += ' --mon tools/monitoring_workflows/epnstderrlog.xml'

0 commit comments

Comments
 (0)