Class to group info on hypotools for ChainDict
Definition at line 127 of file MenuComponents.py.
◆ __init__()
def MenuComponents.HypoToolConf.__init__ |
( |
|
self, |
|
|
|
hypoToolGen |
|
) |
| |
Definition at line 129 of file MenuComponents.py.
131 self.hasFlags =
'flags' in inspect.signature(hypoToolGen).parameters
132 self.hypoToolGen = hypoToolGen
133 self.name=hypoToolGen.__name__
◆ confAndCreate()
def MenuComponents.HypoToolConf.confAndCreate |
( |
|
self, |
|
|
|
flags, |
|
|
|
chainDict |
|
) |
| |
sets the configuration and creates instance of the hypo tool
Definition at line 147 of file MenuComponents.py.
147 def confAndCreate(self, flags, chainDict):
148 """sets the configuration and creates instance of the hypo tool"""
149 self.setConf(chainDict)
150 return self.create(flags)
◆ create()
def MenuComponents.HypoToolConf.create |
( |
|
self, |
|
|
|
flags |
|
) |
| |
creates instance of the hypo tool
Definition at line 140 of file MenuComponents.py.
140 def create(self, flags):
141 """creates instance of the hypo tool"""
143 return self.hypoToolGen( flags, self.chainDict )
145 return self.hypoToolGen( self.chainDict )
◆ setConf()
def MenuComponents.HypoToolConf.setConf |
( |
|
self, |
|
|
|
chainDict |
|
) |
| |
Definition at line 135 of file MenuComponents.py.
135 def setConf( self, chainDict):
136 if type(chainDict)
is not dict:
137 raise RuntimeError(
"Configuring hypo with %s, not good anymore, use chainDict" %
str(chainDict) )
138 self.chainDict = chainDict
◆ chainDict
MenuComponents.HypoToolConf.chainDict |
◆ hasFlags
MenuComponents.HypoToolConf.hasFlags |
◆ hypoToolGen
MenuComponents.HypoToolConf.hypoToolGen |
◆ name
MenuComponents.HypoToolConf.name |
The documentation for this class was generated from the following file: