Skip to main content

system.kanoa.quality.spc.getRuleInfo()

Returns each violation key spcCheck() can return (aboveUCL, WE4_8_same_side, N2_9_same_side and the rest) with a readable label, a one-sentence description and its kind, for screens that show a measure's violations to people. The Measure SPC Analysis popup and the notifications widget use it.

The kinds:

KindMeaning
limitA point is beyond a control or spec limit
patternA run of points shows the process has shifted, is drifting or is unstable
variationToo little variation: the points hug the center line

Parameters​

None.


Returns​

ruleInfo Dictionary: violation key -> {label, description, kind}

KeyLabelKind
aboveUCL / belowLCLAbove UCL / Below LCLlimit
aboveUSL / belowLSLAbove USL / Below LSLlimit
WE1_beyond_3sigma, N1_beyond_3sigmaBeyond 3σlimit
WE2_2of3_beyond_2sigma, N5_2of3_beyond_2sigma2 of 3 beyond 2σpattern
WE3_4of5_beyond_1sigma, N6_4of5_beyond_1sigma4 of 5 beyond 1σpattern
WE4_8_same_side8 on one sidepattern
N2_9_same_side9 on one sidepattern
WE5_6_trending, N3_6_trending6 trendingpattern
N4_14_alternating14 alternatingpattern
N8_8_none_within_1sigma8 outside 1σpattern
WE6_15_within_1sigma, N7_15_within_1sigma15 within 1σvariation

Example​

ruleInfo = system.kanoa.quality.spc.getRuleInfo()
violations = system.tag.readBlocking(['[Kanoa]CoreForge/Philadelphia/Machining/Machine 1/measures/Coolant Temperature/ruleViolations'])[0].value or []
print ', '.join(ruleInfo[key]['label'] for key in violations)
# 9 on one side, 4 of 5 beyond 1σ, 6 trending, 8 on one side