當前位置: 首頁>>代碼示例>>Python>>正文


Python MatrixReader.MatrixReader類代碼示例

本文整理匯總了Python中Configuration.PyReleaseValidation.MatrixReader.MatrixReader的典型用法代碼示例。如果您正苦於以下問題:Python MatrixReader類的具體用法?Python MatrixReader怎麽用?Python MatrixReader使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了MatrixReader類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

 def __init__(self,what='standard',strict=True):
     from Configuration.PyReleaseValidation.MatrixReader import MatrixReader
     self.mrd = MatrixReader(what,noRun=True)
     self.mrd.prepare('all','',None)
     self.configBuilders={}
     self.processes={}
     self.strict=strict
開發者ID:12345ieee,項目名稱:cmg-cmssw,代碼行數:7,代碼來源:MatrixToProcess.py

示例2: runSelected

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
開發者ID:ZihengChen,項目名稱:cmssw,代碼行數:24,代碼來源:runTheMatrix.py

示例3: showRaw

def showRaw(opt):

    mrd = MatrixReader(opt)
    mrd.showRaw(opt.useInput, opt.refRel, opt.fromScratch, opt.raw, opt.step1Only, selected=opt.testList)

    return 0
開發者ID:ZihengChen,項目名稱:cmssw,代碼行數:6,代碼來源:runTheMatrix.py

示例4: MatrixOpts

    from Configuration.PyReleaseValidation.MatrixReader import MatrixReader
    from Configuration.PyReleaseValidation.MatrixRunner import MatrixRunner
  except Exception, e:
    bdir=os.getenv('CMSSW_RELEASE_BASE', None)
    if bdir != None:
      sys.path.insert(0,bdir+'/src/Configuration/PyReleaseValidation/scripts')
    bdir=os.getenv('CMSSW_BASE', None)
    if bdir != None:
      sys.path.insert(0,bdir+'/src/Configuration/PyReleaseValidation/scripts')
    from runTheMatrix import MatrixReader
    from runTheMatrix import MatrixRunner

  newWorkFlows = False
  opts = MatrixOpts()
  try:
    mrd = MatrixReader()
  except:
    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:
開發者ID:cms-sw,項目名稱:int-build,代碼行數:31,代碼來源:runPerfMatrix.py


注:本文中的Configuration.PyReleaseValidation.MatrixReader.MatrixReader類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。