Definition at line 158 of file semantics.py.
◆ store()
def GaudiConfig2.semantics.IntSemantics.store |
( |
|
self, |
|
|
|
value |
|
) |
| |
Validation/transformation of the data to be stored.
Reimplemented from GaudiConfig2.semantics.PropertySemantics.
Definition at line 179 of file semantics.py.
179 def store(self, value):
180 from numbers
import Number
182 if not isinstance(value, Number):
184 "number expected, got {!r} in assignemnt to {}".
format(value, self.name)
188 _log.warning(
"converted %s to %d in assignment to %s", value, v, self.name)
189 min_value, max_value = self.INT_RANGES[self.cpp_type]
190 if v < min_value
or v > max_value:
192 "value {} outside limits for {!r} {}".
format(
193 v, self.cpp_type, self.INT_RANGES[self.cpp_type]
◆ __handled_types__
GaudiConfig2.semantics.IntSemantics.__handled_types__ |
|
staticprivate |
◆ INT_RANGES
GaudiConfig2.semantics.IntSemantics.INT_RANGES |
|
static |
The documentation for this class was generated from the following file: