Configurable base class for PyAlgorithms -------------------------------—.
More...
|
| OutputLevel |
| special case of the OutputLevel: take the value from the svcMgr.MessageSvc if none already set by user More...
|
|
Configurable base class for PyAlgorithms -------------------------------—.
Definition at line 130 of file Configurables.py.
◆ __init__()
def python.Configurables.CfgPyAlgorithm.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
** |
kw |
|
) |
| |
Reimplemented from python.Configurables.CfgPyComponent.
Definition at line 131 of file Configurables.py.
132 if isinstance(self, LegacyConfigurable):
133 _alg_base.__init__(self, name)
135 _alg_base.__init__(self, name, **kw)
136 CfgPyComponent.__init__(self, name, **kw)
◆ __getstate__()
def python.Configurables.CfgPyComponent.__getstate__ |
( |
|
self | ) |
|
|
inherited |
Definition at line 63 of file Configurables.py.
63 def __getstate__(self):
64 state = super().__getstate__()
65 state.update(self.__dict__)
◆ __setstate__()
def python.Configurables.CfgPyComponent.__setstate__ |
( |
|
self, |
|
|
|
state |
|
) |
| |
|
inherited |
Definition at line 68 of file Configurables.py.
68 def __setstate__(self, state):
69 self.__dict__.
update(state)
70 super().__setstate__(state)
◆ getDlls()
def python.Configurables.CfgPyComponent.getDlls |
( |
|
self | ) |
|
|
inherited |
◆ getGaudiType()
def python.Configurables.CfgPyAlgorithm.getGaudiType |
( |
|
self | ) |
|
Definition at line 138 of file Configurables.py.
138 def getGaudiType( self ):
return 'Algorithm'
◆ getHandle()
def python.Configurables.CfgPyComponent.getHandle |
( |
|
self | ) |
|
|
inherited |
◆ getType()
def python.Configurables.CfgPyAlgorithm.getType |
( |
|
self | ) |
|
◆ merge()
def python.Configurables.CfgPyComponent.merge |
( |
|
self, |
|
|
|
other |
|
) |
| |
|
inherited |
Basic merge for Python components.
Checks that all attributes/properties are identical.
Definition at line 91 of file Configurables.py.
91 def merge(self, other):
92 """Basic merge for Python components.
93 Checks that all attributes/properties are identical.
99 raise TypeError(f
"cannot merge instance of {type(other).__name__} into "
100 f
"an instance of { type(self).__name__}")
102 if self.name != other.name:
103 raise ValueError(f
"cannot merge configurables with different names ({self.name} and {other.name})")
105 for prop
in other.__dict__:
106 if (hasattr(self, prop)
and getattr(self, prop) == getattr(other, prop)):
109 raise ValueError(f
"conflicting settings for property {prop} of {self.name}: "
110 f
"{getattr(self,prop)} vs {getattr(other,prop)}")
◆ msg()
def python.Configurables.CfgPyComponent.msg |
( |
|
self | ) |
|
|
inherited |
Definition at line 56 of file Configurables.py.
57 import AthenaCommon.Logging
as _L
58 return _L.logging.getLogger( self.getName() )
◆ setup()
def python.Configurables.CfgPyAlgorithm.setup |
( |
|
self | ) |
|
Reimplemented from python.Configurables.CfgPyComponent.
Definition at line 141 of file Configurables.py.
143 from AthenaPython
import PyAthena
144 setattr(PyAthena.algs, self.getName(), self)
147 CfgPyComponent.setup(self)
148 if isinstance(self, LegacyConfigurable):
149 ConfigurableAlgorithm.setup(self)
◆ OutputLevel
python.Configurables.CfgPyComponent.OutputLevel |
|
inherited |
special case of the OutputLevel: take the value from the svcMgr.MessageSvc if none already set by user
Definition at line 81 of file Configurables.py.
The documentation for this class was generated from the following file: