当前位置: 首页>>代码示例>>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;未经允许,请勿转载。