CMS 3D CMS Logo

Classes | Functions
MatrixInjector Namespace Reference

Classes

class  MatrixInjector
 

Functions

def performInjectionOptionTest (opt)
 
def upload_to_couch_oneArg (arguments)
 

Function Documentation

def MatrixInjector.performInjectionOptionTest (   opt)

Definition at line 8 of file MatrixInjector.py.

Referenced by runTheMatrix.stepOrIndex().

9  if opt.show:
10  print 'Not injecting to wmagent in --show mode. Need to run the worklfows.'
11  sys.exit(-1)
12  if opt.wmcontrol=='init':
13  #init means it'll be in test mode
14  opt.nProcs=0
15  if opt.wmcontrol=='test':
16  #means the wf were created already, and we just dryRun it.
17  opt.dryRun=True
18  if opt.wmcontrol=='submit' and opt.nProcs==0:
19  print 'Not injecting to wmagent in -j 0 mode. Need to run the worklfows.'
20  sys.exit(-1)
21  if opt.wmcontrol=='force':
22  print "This is an expert setting, you'd better know what you're doing"
23  opt.dryRun=True
24 
def performInjectionOptionTest(opt)
def MatrixInjector.upload_to_couch_oneArg (   arguments)

Definition at line 25 of file MatrixInjector.py.

25 def upload_to_couch_oneArg(arguments):
26  from modules.wma import upload_to_couch
27  (filePath,labelInCouch,user,group,where) = arguments
28  cacheId=upload_to_couch(filePath,
29  labelInCouch,
30  user,
31  group,
32  test_mode=False,
33  url=where)
34  return cacheId
35 
36 
def upload_to_couch_oneArg(arguments)