32 Given a module number `chan` and a `calib_blob` string, return the number
33 of bad, good and affected channels in this module.
35 It also returns a dictionary `prob` containing as keys the problem identifier
36 and values the number of channels affected by that problem.
39 if chan == 1000
or len(calib_blob) <= 24:
48 bad, good, affected = [], [], []
58 for chn, adc
in chn_adcs:
59 adcBits, chnBits = bch.getData(chn, adc, 0), bch.getData(chn, 2, 0)
61 if status.isBad(): bad.append((chn, adc))
62 if status.isGood(): good.append((chn, adc))
63 if status.isAffected(): affected.append((chn, adc))
65 if not status.isGood():
66 prbs = status.getPrbs()
70 probs[key] = probs.get(key, 0) + 1
72 return len(bad), len(good), len(affected), probs