[Biopython-dev] [Bug 2698] Attempt at a unit test for MaxEntrophy
bugzilla-daemon at portal.open-bio.org
bugzilla-daemon at portal.open-bio.org
Fri Dec 18 10:00:50 UTC 2009
http://bugzilla.open-bio.org/show_bug.cgi?id=2698
------- Comment #2 from mdehoon at ims.u-tokyo.ac.jp 2009-12-18 05:00 EST -------
Thanks for your test!
I would like to simplify the code a bit though.
How about replacing
ix, iy= expand_count([0, 0, 1],'C', 40)
xm.extend(ix)
ym.extend(iy)
by
xm.extend([0,0,1] * 40)
ym.extend(['C'] * 40)
Or, you could replace this whole section by
xm = [0,0,1]*40 + [0,0,1]*60 + [0,1,0]*75 + [0,1,0]*25 + [1,0,0]*90 +
[1,0,0]*10
and similarly for ym.
--
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