Skip to main content

system.kanoa.quality.config.addTolerance(attrInfo, userId)

Adds an attribute tolerance. All attrInfo keys are required.


Parameters

attrInfo Dictionary

- assetIdIntegerCan be None for all assets
- attributeIdInteger
- enabledBoolean
- itemClassIdIntegerCan be None for all item classes
- itemIdIntegerCan be None for all items
- itemSetIdIntegerCan be None for all item sets
- lclFloatLower control limit
- ldlFloatLower division limit if applciable
- lelFloatLower entry limit
- lslFloatLower spec limit
- tgtFloatTarget
- uclFloatUpper control limit
- udlFloatUpper division limit if applciable
- uelFloatUpper entry limit
- uslFloatUpper spec limit

userId Integer


Returns

attributeToleranceId Integer


Example

attrInfo = {
'attributeId': 2,
'assetId': None,
'itemId': None,
'itemClassId': None,
'itemSetId': None,
'uel': 10.0,
'udl': None,
'usl': 9.0,
'ucl': 8.0,
'tgt': 5,
'lcl': 3,
'lsl': 2,
'ldl': None,
'lel': 0,
'enabled': True
}
userId = 5
attributeToleranceId = system.kanoa.quality.config.addTolerance(attrInfo, userId)