CMS 3D CMS Logo

Classes | Functions
MatrixInjector Namespace Reference

Classes

class  MatrixInjector
 

Functions

def performInjectionOptionTest (opt)
 
def upload_to_couch_oneArg (arguments)
 

Function Documentation

◆ performInjectionOptionTest()

def MatrixInjector.performInjectionOptionTest (   opt)

Definition at line 12 of file MatrixInjector.py.

References print().

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

◆ upload_to_couch_oneArg()

def MatrixInjector.upload_to_couch_oneArg (   arguments)

Definition at line 29 of file MatrixInjector.py.

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