[Biopython-dev] [Bug 2268] Cluster unit test suite runs indefinitely

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Mon May 7 23:06:19 UTC 2007


------- Comment #16 from mdehoon at ims.u-tokyo.ac.jp  2007-05-07 19:06 EST -------
Thanks, Chris!

Actually, this looks OK.
The kcluster routine runs the k-means algorithm 100 times starting from random
initial clusterings. On each run, total is initialized to DBL_MAX (the largest
number representable as a double). This is the huge number that is printed
(printf usually has problems to print DBL_MAX nicely, so it may appear weird in
the output).

The same floating-point comparison that causes kcluster to hang also appears in
kmedoids, so it's no surprise that the code hangs there too.

I'll write a patch that avoids this floating-point comparison and post it here.

Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the Biopython-dev mailing list