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
| - lcl | Float | |
| - ldl | Float | |
| - lel | Float | |
| - lsl | Float | |
| - tgt | Float | |
| - ucl | Float | |
| - udl | Float | |
| - uel | Float | |
| - usl | Float |
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)