![]() |
ATLAS Offline Software
|
Public Member Functions | |
def | __init__ (self, context='') |
def | __setattr__ (self, name, n_value) |
def | __str__ (self) |
def | is_locked (self) |
def | help (self) |
def | import_JobProperties (self, module_name) |
def | import_Flags (self, module_name) |
def | add_Container (self, new_container) |
def | add_JobProperty (self, new_flag) |
def | del_JobProperty (self, del_flag) |
def | del_Container (self, del_container) |
def | lock_JobProperties (self) |
def | unlock_JobProperties (self) |
def | print_JobProperties (self, mode='minimal') |
def | set_JobProperties (self, data) |
def | __getattribute__ (self, name) |
Private Attributes | |
__name__ | |
_context_name | |
Static Private Attributes | |
_log = Logging.logging.getLogger('JobPropertyContainer::') | |
_nInstancesContextList = list() | |
bool | _locked = False |
Container for the JobProperties. By definition it will contain a minimal set of flags, but this set can be increased during the job configuration using the "import_JobProperties" or "add_JobProperty" methods. In this way it can be adapted to the diferent job needs. A JobPropertyContainer can contain other JobProperty containers, that can be added using the "add_Container" method. There is a top global job properties container instance which is called "jobproperties" that has to be used as starting point.
Definition at line 444 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.__init__ | ( | self, | |
context = '' |
|||
) |
Each JobPropertyContainer has only one possible instance in a given context.
Definition at line 464 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.__getattribute__ | ( | self, | |
name | |||
) |
Definition at line 757 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.__setattr__ | ( | self, | |
name, | |||
n_value | |||
) |
Definition at line 481 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.__str__ | ( | self | ) |
Definition at line 514 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.add_Container | ( | self, | |
new_container | |||
) |
Adds a container of JobProperties of the type JobPropertyContainer to the existing container.
Definition at line 590 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.add_JobProperty | ( | self, | |
new_flag | |||
) |
Add one JobProperty to the present container. The new JobProperty added must have a name without '_' and subclass the base class "JobProperty".
Definition at line 605 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.del_Container | ( | self, | |
del_container | |||
) |
Deletes one sub-container of the present container.
Definition at line 634 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.del_JobProperty | ( | self, | |
del_flag | |||
) |
Deletes one JobProperty from the present container.
Definition at line 620 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.help | ( | self | ) |
Prints the documentation generated with the JobProperty container.
Definition at line 536 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.import_Flags | ( | self, | |
module_name | |||
) |
OBSOLETE: Use import_JobProperties Import modules with JobProperties specific to a given job configuration. The new specific set of JobProperties added must have a name without '_' and subclass the base class "JobProperty". IMPORTANT: "import_Flags" method is calling the new method "import_JobProperties". For some time import_Flags it will work but it will be removed soon
Definition at line 574 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.import_JobProperties | ( | self, | |
module_name | |||
) |
Import modules with JobProperties specific to a given job configuration. The new specific set of JobProperties added must have a name without '_' and subclass the base class "JobProperty".
Definition at line 546 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.is_locked | ( | self | ) |
Definition at line 533 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.lock_JobProperties | ( | self | ) |
def python.JobProperties.JobPropertyContainer.print_JobProperties | ( | self, | |
mode = 'minimal' |
|||
) |
Prints all the JobProperties in the container. It will print also the JobProperties within the sub-containers present in the container. The available options are: 'minimal','full','tree','tree&value','tree&valuenondefault'
Definition at line 673 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.set_JobProperties | ( | self, | |
data | |||
) |
It can be used to set several job properties in different JobContainers in one step. The expected data must be a dict as for example: data={'JobProperties.SimFlags':{'init_Level':2,'SeedsG4':.98}, 'JobProperties.Digitization':{'writeMuonDigit':False} }
Definition at line 728 of file JobProperties.py.
def python.JobProperties.JobPropertyContainer.unlock_JobProperties | ( | self | ) |
|
private |
Definition at line 474 of file JobProperties.py.
|
private |
Definition at line 475 of file JobProperties.py.
|
staticprivate |
Definition at line 462 of file JobProperties.py.
|
staticprivate |
Definition at line 460 of file JobProperties.py.
|
staticprivate |
Definition at line 461 of file JobProperties.py.