Function calculate_cloud:239 in file utils.py.
If you use a tag for each record (100%), so tag_weight for given tag equals
max_weight, in my case it equaled 26.0, thresholds[steps-1] also equaled 26.0.
But the comparison of tag_weight <= thresholds[i] returned False.
Probably it is well-known problem of floating point numbers.
I’ve changed the comparison
if not font_set and tag_weight <= thresholds[i]:
for
if not font_set and float(str(tag_weight)) <= float(str(thresholds[i])):
And this has solved the problem
Original issue reported on code.google.com by SunFun...@gmail.com on 23 May 2011 at 8:25
Original issue reported on code.google.com by
SunFun...@gmail.com
on 23 May 2011 at 8:25