Definition at line 156 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 177 of file semantics.py.
177 def store(self, value):
178 from numbers
import Number
180 if not isinstance(value, Number):
182 "number expected, got {!r} in assignment to {}".
format(value, self.name)
186 _log.warning(
"converted %s to %d in assignment to %s", value, v, self.name)
187 min_value, max_value = self.INT_RANGES[self.cpp_type]
188 if v < min_value
or v > max_value:
190 "value {} outside limits for {!r} {}".
format(
191 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: