Public Member Functions | |
| def | __init__ |
| def | GetType |
| def | __repr__ |
| def | RenameJob |
Private Member Functions | |
| def | _DoMemberIO |
| def | _AddJobOrProtoJob |
Top level object to manage a single task.
This class inherits from GBSTask and adds the constraint that Job and ProtoJob names
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
It manages Monte Carlo jobs in which the run and subrun numbers
determine the Monte Carlo random number seed and introduces the
new method
RenameJob(old_name, new_name)
which allows a job to use a seed.
Definition at line 13 of file MinosRSMTask.py.
| def minos::MinosRSMTask::MinosRSMTask::__init__ | ( | self, | ||
| name, | ||||
| parent, | ||||
| model, | ||||
| model_args | ||||
| ) |
Definition at line 38 of file MinosRSMTask.py.
00038 : 00039 GBSTask.__init__(self,name,parent,model,model_args) 00040 def _DoMemberIO(self,ioh):
| def minos::MinosRSMTask::MinosRSMTask::_DoMemberIO | ( | self, | ||
| ioh | ||||
| ) | [private] |
| def minos::MinosRSMTask::MinosRSMTask::GetType | ( | self | ) |
| def minos::MinosRSMTask::MinosRSMTask::__repr__ | ( | self | ) |
| def minos::MinosRSMTask::MinosRSMTask::_AddJobOrProtoJob | ( | self, | ||
| job_name, | ||||
| args_str, | ||||
| env_str, | ||||
| type | ||||
| ) | [private] |
Create a new named Job or ProtoJob and optionally assign its application script local args.
Definition at line 54 of file MinosRSMTask.py.
00054 : 00055 00056 """Create a new named Job or ProtoJob and optionally assign its application script local args.""" 00057 if not IsValidJobName(job_name): return None 00058 return GBSTask._AddJobOrProtoJob(self,job_name,args_str,env_str,type) 00059 def RenameJob(self,old_name,new_name):
| def minos::MinosRSMTask::MinosRSMTask::RenameJob | ( | self, | ||
| old_name, | ||||
| new_name | ||||
| ) |
Rename job from old_name to new_name.
Definition at line 60 of file MinosRSMTask.py.
00060 : 00061 """Rename job from old_name to new_name.""" 00062 if not IsValidJobName(new_name): return 00063 job = self.GetJob(old_name) 00064 if not job: return 00065 if self.GetJob(new_name,False): 00066 print "Sorry, there already is a job named " + new_name 00067 return 00068 job._Rename(new_name) 00069 del self._jobManagers[old_name] 00070 self._jobManagers[new_name] = job 00071
1.5.4