Public Member Functions | |
def | __init__ |
def | getConfig |
def | getKey |
def | getProcess |
def | identityTest |
def | listAll |
def | load |
Public Attributes | |
configBuilders | |
mrd | |
processes | |
strict |
Definition at line 4 of file MatrixToProcess.py.
Definition at line 6 of file MatrixToProcess.py.
def MatrixToProcess::MatrixToProcess::getConfig | ( | self, | |
wfNumber, | |||
step | |||
) |
Definition at line 51 of file MatrixToProcess.py.
def MatrixToProcess::MatrixToProcess::getKey | ( | self, | |
wfNumber, | |||
step | |||
) |
Definition at line 13 of file MatrixToProcess.py.
def MatrixToProcess::MatrixToProcess::getProcess | ( | self, | |
wfNumber, | |||
step | |||
) |
Definition at line 16 of file MatrixToProcess.py.
def MatrixToProcess::MatrixToProcess::identityTest | ( | self, | |
wfNumber, | |||
step | |||
) |
Definition at line 57 of file MatrixToProcess.py.
def MatrixToProcess::MatrixToProcess::listAll | ( | self | ) |
Definition at line 68 of file MatrixToProcess.py.
00069 : 00070 for wf in self.mrd.workFlows: 00071 step=1 00072 print '---------------------' 00073 print 'process workflow',wf.numId 00074 print 00075 while self.load(float(wf.numId),step): 00076 p=self.getProcess(float(wf.numId),step) 00077 print ', '.join(s.label() for s in p.schedule) 00078 #print p.outputModules() 00079 step+=1 00080
def MatrixToProcess::MatrixToProcess::load | ( | self, | |
wfNumber, | |||
step | |||
) |
Definition at line 24 of file MatrixToProcess.py.
00025 : 00026 from Configuration.PyReleaseValidation.ConfigBuilder import ConfigBuilder 00027 from Configuration.PyReleaseValidation.cmsDriverOptions import OptionsFromCommand 00028 import copy 00029 00030 if len(self.configBuilders)!=0 and self.strict: 00031 raise Exception('one should never be loading more than one process at a time due to python loading/altering feature') 00032 key=self.getKey(wfNumber,step) 00033 if key in self.configBuilders: 00034 return True 00035 00036 for wf in self.mrd.workFlows: 00037 if float(wf.numId)!=wfNumber: continue 00038 00039 if not hasattr(wf,'cmdStep%d'%(step)): continue 00040 if not getattr(wf,'cmdStep%d'%(step)): continue 00041 00042 command=getattr(wf,'cmdStep%d'%(step)) 00043 opt=OptionsFromCommand(command) 00044 if opt: 00045 cb = ConfigBuilder(opt,with_input=True,with_output=True) 00046 cb.prepare() 00047 self.configBuilders[key]=copy.copy(cb) 00048 return True 00049 print "could not satisfy the request for step",step,"of workflow",wfNumber 00050 return False
Definition at line 6 of file MatrixToProcess.py.
Definition at line 6 of file MatrixToProcess.py.
Definition at line 6 of file MatrixToProcess.py.
Definition at line 6 of file MatrixToProcess.py.