minor update

This commit is contained in:
Miroslav Stampar 2011-02-02 12:42:55 +00:00
parent e73a147fb5
commit 847b648e4a

View File

@ -42,9 +42,8 @@ def __findUnionCharCount(comment, place, parameter, value, prefix, suffix, where
""" """
retVal = None retVal = None
items = []
ratios = []
pushValue(kb.errorIsNone) pushValue(kb.errorIsNone)
items, ratios = [], []
kb.errorIsNone = False kb.errorIsNone = False
min_, max_ = None, None min_, max_ = None, None
@ -64,7 +63,7 @@ def __findUnionCharCount(comment, place, parameter, value, prefix, suffix, where
lower, upper = average(ratios) - UNION_STDEV_COEFF * deviation, average(ratios) + UNION_STDEV_COEFF * deviation lower, upper = average(ratios) - UNION_STDEV_COEFF * deviation, average(ratios) + UNION_STDEV_COEFF * deviation
minItem, maxItem = None, None minItem, maxItem = None, None
for item in ratios: for item in items:
if item[1] == min_: if item[1] == min_:
minItem = item minItem = item
elif item[1] == max_: elif item[1] == max_: