本文整理匯總了Python中Configuration.PyReleaseValidation.MatrixReader.MatrixReader.show方法的典型用法代碼示例。如果您正苦於以下問題:Python MatrixReader.show方法的具體用法?Python MatrixReader.show怎麽用?Python MatrixReader.show使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Configuration.PyReleaseValidation.MatrixReader.MatrixReader
的用法示例。
在下文中一共展示了MatrixReader.show方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: runSelected
# 需要導入模塊: from Configuration.PyReleaseValidation.MatrixReader import MatrixReader [as 別名]
# 或者: from Configuration.PyReleaseValidation.MatrixReader.MatrixReader import show [as 別名]
def runSelected(opt):
mrd = MatrixReader(opt)
mrd.prepare(opt.useInput, opt.refRel, opt.fromScratch)
ret = 0
if opt.show:
mrd.show(opt.testList, opt.extended, opt.cafVeto)
if opt.testList : print('testListected items:', opt.testList)
else:
mRunnerHi = MatrixRunner(mrd.workFlows, opt.nProcs, opt.nThreads)
ret = mRunnerHi.runTests(opt)
if opt.wmcontrol:
if ret!=0:
print('Cannot go on with wmagent injection with failing workflows')
else:
wfInjector = MatrixInjector(opt,mode=opt.wmcontrol,options=opt.wmoptions)
ret= wfInjector.prepare(mrd,
mRunnerHi.runDirs)
if ret==0:
wfInjector.upload()
wfInjector.submit()
return ret
示例2: MatrixReader
# 需要導入模塊: from Configuration.PyReleaseValidation.MatrixReader import MatrixReader [as 別名]
# 或者: from Configuration.PyReleaseValidation.MatrixReader.MatrixReader import show [as 別名]
mrd = MatrixReader(opts)
newWorkFlows = True
mrd.prepare()
for wf in mrd.workFlows:
if str(wf.numId) not in testList: continue
print "processing ", wf.numId
if newWorkFlows: updateNewWF(wf)
else: updateOldWF(wf)
ret = 0
if show:
if not newWorkFlows:
for i in range(0,len(testList)): testList[i] = float(testList[i])
mrd.show(testList)
print 'selected items:', testList
else:
print 'going to run', testList
mRunner = MatrixRunner(mrd.workFlows, nThreads)
try:
ret = mRunner.runTests(testList)
except:
opts.testList = testList
ret = mRunner.runTests(opts)
return ret
# --------------------------------------------------------------------------------