Stores the configuration of a transform.
More...
Stores the configuration of a transform.
Definition at line 28 of file trfAMI.py.
◆ __init__()
def python.trfAMI.TrfConfig.__init__ |
( |
|
self | ) |
|
Definition at line 29 of file trfAMI.py.
38 self.newTransform=
False
◆ __iter__()
def python.trfAMI.TrfConfig.__iter__ |
( |
|
self | ) |
|
Definition at line 40 of file trfAMI.py.
41 theDict=self.inFiles.
copy()
42 theDict.update(self.outFiles)
43 theDict.update(self.physics)
44 for (k,v)
in theDict.items():
◆ __str__()
def python.trfAMI.TrfConfig.__str__ |
( |
|
self | ) |
|
Definition at line 47 of file trfAMI.py.
48 string =
'asetup '+self.release+
'\n'+self.name
49 string += self._argsToString(self.physics) +
'\n'
51 string +=
'\nInput file arguments:\n'
53 string += self._argsToString(self.inFiles) +
'\n'
55 string +=
'\nExample input dataset: '+ self.inDS +
'\n'
57 string +=
'\nOutput file arguments:\n'
59 string += self._argsToString(self.outFiles) +
'\n'
61 string +=
'\nAMI outputs:\n'
62 if self.outputs != {}:
63 string += self.outputs +
'\n'
66 string +=
'\nPossible output data types: '+
str(self.outfmts) +
'\n'
◆ _argsToString()
def python.trfAMI.TrfConfig._argsToString |
( |
|
self, |
|
|
|
adict |
|
) |
| |
|
private |
Definition at line 69 of file trfAMI.py.
69 def _argsToString(self, adict):
71 for (k,v)
in adict.items():
73 if not k.startswith(
'--'):
78 if isinstance(v, dict):
82 for vk, vv
in v.items():
86 for vk, vv
in v.items():
91 if 'triggerConfig' in k:
96 for vk, vv
in v.items():
97 string +=
" " + vk + separator +
str(vv)
98 elif isinstance(v, (list, tuple)):
100 if "athenaopts" in k:
101 string +=
" " + k +
"=" +
"'" +
" ".
join(v).
replace(
"'",
"\\'") +
"'"
102 elif "Exec" in k
or "Include" in k:
104 string +=
" " + k +
" " +
" ".
join([
"'"+element.replace(
"'",
"\\'")+
"'" for element
in v])
106 string +=
" " + k +
"=" +
" ".
join([
"'" + element.replace(
"'",
"\\'") +
"'" for element
in v])
109 string +=
" "+k+
" "+
"'"+
str(v).
replace(
"'",
"\\'")+
"'"
111 string +=
" "+k+
"="+
"'"+
str(v).
replace(
"'",
"\\'")+
"'"
◆ inDS
python.trfAMI.TrfConfig.inDS |
◆ inFiles
python.trfAMI.TrfConfig.inFiles |
◆ name
python.trfAMI.TrfConfig.name |
◆ newTransform
python.trfAMI.TrfConfig.newTransform |
◆ outFiles
python.trfAMI.TrfConfig.outFiles |
◆ outfmts
python.trfAMI.TrfConfig.outfmts |
◆ outputs
python.trfAMI.TrfConfig.outputs |
◆ physics
python.trfAMI.TrfConfig.physics |
◆ release
python.trfAMI.TrfConfig.release |
The documentation for this class was generated from the following file:
def _parseIncludeDict(substep, value, joinWithChar=",")
Back convert a pre/postInclude dictionary into a set of command line compatible strings By default us...