Public Member Functions | |
def | __init__ |
def | GetType |
def | __repr__ |
def | GetRun |
def | GetSubrun |
def | SetLocalEnvironment |
Private Member Functions | |
def | _DoMemberIO |
def | _Rename |
Object to submit, and if necessary resubmit a job until it succeeds or needs user intervention. This class inherits from GBSJob and exploits the constraint, imposed by MinosRSMTask, that its name must be of the form:- job_rrrrrrrr_ssss where rrrrrrrr is an 8 digit zero padded run number ssss is a 4 digit zero padded subrun number to add to its local environment:- run=<run-number> subrun=<subrun-number> It introduces the new methods:- GetRun() GetSubrun() Rename(new_name)
Definition at line 7 of file MinosRSMJob.py.
def minos::MinosRSMJob::MinosRSMJob::__init__ | ( | self, | ||
name, | ||||
parent, | ||||
model, | ||||
model_args | ||||
) |
def minos::MinosRSMJob::MinosRSMJob::__repr__ | ( | self | ) |
def minos::MinosRSMJob::MinosRSMJob::_DoMemberIO | ( | self, | ||
ioh | ||||
) | [private] |
def minos::MinosRSMJob::MinosRSMJob::_Rename | ( | self, | ||
new_name | ||||
) | [private] |
Rename job to new_name. Should only be called by parent Task.
Definition at line 46 of file MinosRSMJob.py.
00046 : return self.AsString() 00047 00048 ###### User Callable Methods (Getters then Setters) ###### 00049 00050 def GetRun(self): 00051 """Return run number""" 00052 return int(re.search(r"job_(\d+)",self.GetName()).group(1)) 00053 00054 def GetSubrun(self): 00055 """Return subrun number""" 00056 return int(re.search(r"job_\d+_(\d+)",self.GetName()).group(1)) 00057 00058 def SetLocalEnvironment(self,env_str): 00059 00060 """Set, as a comma separated list string, the environment that local to this job. 00061 00062 Extends the GBSJob method by adding run=<run-number>,subrun=<subrun-number>.""" 00063 00064 GBSJob.SetLocalEnvironment(self,env_str) 00065 GBSJob.SetLocalEnvironment(self,"+run=" + str(self.GetRun()) + ",subrun=" + str(self.GetSubrun())) 00066
def minos::MinosRSMJob::MinosRSMJob::GetRun | ( | self | ) |
Return run number
Definition at line 26 of file MinosRSMJob.py.
00026 :- 00027 00028 GetRun() 00029 GetSubrun()
def minos::MinosRSMJob::MinosRSMJob::GetSubrun | ( | self | ) |
def minos::MinosRSMJob::MinosRSMJob::GetType | ( | self | ) |
def minos::MinosRSMJob::MinosRSMJob::SetLocalEnvironment | ( | self, | ||
env_str | ||||
) |
Set, as a comma separated list string, the environment that local to this job. Extends the GBSJob method by adding run=<run-number>,subrun=<subrun-number>.
Definition at line 34 of file MinosRSMJob.py.
00037 : 00038 GBSJob.__init__(self,name,parent,model,model_args) 00039 self.SetLocalEnvironment(self.GetLocalEnvironment()) 00040 00041 def _DoMemberIO(self,ioh): 00042 GBSJob._DoMemberIO(self,ioh) 00043 def GetType(self): return "MinosRSMJob"