gemd.entity.bounds_validation module
- class gemd.entity.bounds_validation.WarningLevel(value)
Bases:
IntEnum
Control the behavior for warnings/errors around template validations.
IGNORE: Do not check if values are consistent with bounds. WARNING: Accept bad values and issue a warning saying as much. FATAL: Raise an exception when trying to set an inconsistent value.
- FATAL = 2
- IGNORE = 0
- WARNING = 1
- gemd.entity.bounds_validation.get_validation_level() WarningLevel
Return the value of the BOUNDS_VALIDATION.
- gemd.entity.bounds_validation.set_validation_level(level: WarningLevel)
Set the value of the BOUNDS_VALIDATION.
- gemd.entity.bounds_validation.validation_level(level: WarningLevel)
Provide a context for setting a WarningLevel locally.