Class to group info on hypotools for ChainDict
Definition at line 125 of file MenuComponents.py.
◆ __init__()
def MenuComponents.HypoToolConf.__init__ |
( |
|
self, |
|
|
|
hypoToolGen |
|
) |
| |
Definition at line 127 of file MenuComponents.py.
129 self.hasFlags =
'flags' in inspect.signature(hypoToolGen).parameters
130 self.hypoToolGen = hypoToolGen
131 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 145 of file MenuComponents.py.
145 def confAndCreate(self, flags, chainDict):
146 """sets the configuration and creates instance of the hypo tool"""
147 self.setConf(chainDict)
148 return self.create(flags)
◆ create()
def MenuComponents.HypoToolConf.create |
( |
|
self, |
|
|
|
flags |
|
) |
| |
creates instance of the hypo tool
Definition at line 138 of file MenuComponents.py.
138 def create(self, flags):
139 """creates instance of the hypo tool"""
141 return self.hypoToolGen( flags, self.chainDict )
143 return self.hypoToolGen( self.chainDict )
◆ setConf()
def MenuComponents.HypoToolConf.setConf |
( |
|
self, |
|
|
|
chainDict |
|
) |
| |
Definition at line 133 of file MenuComponents.py.
133 def setConf( self, chainDict):
134 if type(chainDict)
is not dict:
135 raise RuntimeError(
"Configuring hypo with %s, not good anymore, use chainDict" %
str(chainDict) )
136 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: