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 9 of file MatrixInjector.py.

References edm.print().

Referenced by runTheMatrix.stepOrIndex().

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

Definition at line 26 of file MatrixInjector.py.

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