CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
MatrixInjector Namespace Reference

Classes

class  MatrixInjector
 

Functions

def performInjectionOptionTest
 
def upload_to_couch_oneArg
 

Variables

int MAXWORKFLOWLENGTH = 81
 

Function Documentation

def MatrixInjector.performInjectionOptionTest (   opt)

Definition at line 12 of file MatrixInjector.py.

References print().

12 
14  if opt.show:
15  print('Not injecting to wmagent in --show mode. Need to run the worklfows.')
16  sys.exit(-1)
17  if opt.wmcontrol=='init':
18  #init means it'll be in test mode
19  opt.nProcs=0
20  if opt.wmcontrol=='test':
21  #means the wf were created already, and we just dryRun it.
22  opt.dryRun=True
23  if opt.wmcontrol=='submit' and opt.nProcs==0:
24  print('Not injecting to wmagent in -j 0 mode. Need to run the worklfows.')
25  sys.exit(-1)
26  if opt.wmcontrol=='force':
27  print("This is an expert setting, you'd better know what you're doing")
28  opt.dryRun=True
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def performInjectionOptionTest
def MatrixInjector.upload_to_couch_oneArg (   arguments)

Definition at line 29 of file MatrixInjector.py.

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

Variable Documentation

int MatrixInjector.MAXWORKFLOWLENGTH = 81

Definition at line 10 of file MatrixInjector.py.