Home | Trees | Indices | Help |
---|
|
object --+ | GPIProxyObject --+ | Lib.Splitters.ArgSplitter'.ArgSplitter._proxyClass
Split job by changing the args attribute of the application. This splitter only applies to the applications which have args attribute (e.g. Executable, Root). It is a special case of the GenericSplitter. This splitter allows the creation of a series of subjobs where the only difference between different jobs are their arguments. Below is an example that executes a ROOT script ~/analysis.C void analysis(const char* type, int events) { std::cout << type << " " << events << std::endl; } with 3 different sets of arguments. s = ArgSplitter(args=[['AAA',1],['BBB',2],['CCC',3]]) r = Root(version='5.10.00',script='~/analysis.C') j.Job(application=r, splitter=s) Notice how each job takes a list of arguments (in this case a list with a string and an integer). The splitter thus takes a list of lists, in this case with 3 elements so there will be 3 subjobs. Running the subjobs will produce the output: subjob 1 : AAA 1 subjob 2 : BBB 2 subjob 3 : CCC 3 Properties: args A list of lists of arguments to pass to script. (simple property, list, default=[],comparable)
|
|||
_impl This is a Ganga.GPI.ArgSplitter implementation class. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
args = <Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at
|
|
|||
Inherited from |
|
GPI ArgSplitter object constructor: ArgSplitter() : create argsplitter with default settings; ArgSplitter(a) : make a copy of a; ArgSplitter(a,x=a,...): make a copy of a and set property 'x' to a, etc..
|
Return an short representation of ArgSplitter object.
|
Set a property of ArgSplitter with consistency and safety checks. Setting a [protected] or a unexisting property raises AttributeError.
|
Return a printable string representing ArgSplitter object as a tree of properties.
|
|
args
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Jun 25 10:35:22 2012 | http://epydoc.sourceforge.net |