You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 [email protected] on 23 May 2011 at 8:25
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 23 May 2011 at 8:25The text was updated successfully, but these errors were encountered: