Skip to main content

system.kanoa.quality.config.checkTolerance(toleranceName, tolerances)

Checks a tolerance against a tolerance specification and returns whether the value set for the tolerance is valid


Parameters

toleranceName String: Name of tolerance to check i.e. 'lsl'
tolerances Dictionary

- lclFloat
- ldlFloat
- lelFloat
- lslFloat
- tgtFloat
- uclFloat
- udlFloat
- uelFloat
- uslFloat

Returns

valid Boolean


Example

tolerances = {"lel": 0, "lsl": 1, "ldl": None, "lcl": 1.5, "tgt": 2, "ucl": 2.5, "udl": None, "usl": 3, "uel": 3.5}
toleranceName = 'lcl'
valid = system.kanoa.quality.config.checkTolerance(toleranceName, tolerances)