Definition at line 127 of file DetStatusLib.py.
◆ __init__()
def python.DetStatusLib.DetStatusReq.__init__ |
( |
|
self | ) |
|
Definition at line 130 of file DetStatusLib.py.
131 "Initialise to empty set of requirements"
135 self.names=DetStatusNames()
◆ __str__()
def python.DetStatusLib.DetStatusReq.__str__ |
( |
|
self | ) |
|
Definition at line 164 of file DetStatusLib.py.
165 "Print representation of status requirements"
167 for (key,val)
in self.req.
items():
168 result+=
"%s %i " % (self.names.
name(key),val)
◆ getDict()
def python.DetStatusLib.DetStatusReq.getDict |
( |
|
self | ) |
|
Definition at line 160 of file DetStatusLib.py.
161 "Return the dictionary holding the requirements (channel/value pairs)"
◆ setFromString()
def python.DetStatusLib.DetStatusReq.setFromString |
( |
|
self, |
|
|
|
reqstring |
|
) |
| |
Set requirements from a space-separated string with flag req pairs
e.g. 'SCTB 3 EMEC G' (numbers or letters for status)
Definition at line 137 of file DetStatusLib.py.
137 def setFromString(self,reqstring):
138 """Set requirements from a space-separated string with flag req pairs
139 e.g. 'SCTB 3 EMEC G' (numbers or letters for status)"""
141 namelist=self.names.allNames()
144 while (ix+1<len(tokens)):
147 if (val
is not None):
150 for name
in namelist:
151 if (flagname==name[0:len(flagname)]):
152 self.req[self.names.
num(name)]=val
155 print (
"Name %s does not match any status flag" % flagname)
157 print (
"Value %s does not define a status" % tokens[ix+1])
◆ names
python.DetStatusLib.DetStatusReq.names |
◆ req
python.DetStatusLib.DetStatusReq.req |
The documentation for this class was generated from the following file: