Commit dbce3ce5 authored by Runar Borge's avatar Runar Borge
Browse files

Merge branch 'github/fork/runborg/info_longest' into 'master'

Fixes #9 integer displayed as float

See merge request !11
parents cdce87ad 265ef826
......@@ -337,7 +337,7 @@ class Model:
for (u,v) in sp[:top]:
if (u,v) in seen and pc[(u,v)] == pc[(v,u)]: continue
retval.append("%s (%s)" % (" <-> ".join([u,v]), pc[(u,v)]))
retval.append("%s (%d)" % (" <-> ".join([u,v]), pc[(u,v)]))
seen[(u,v)] = True
if (v,u) in sp and pc[(u,v)] == pc[(v,u)]:
seen[(v,u)] = True
......@@ -810,7 +810,7 @@ class Simulation:
seen = {}
for (u,v) in sp[:top]:
if (u,v) in seen and pc[(u,v)] == pc[(v,u)]: continue
retval.append("%s (%s)" % (" <-> ".join([u,v]), pc[(u,v)]))
retval.append("%s (%d)" % (" <-> ".join([u,v]), pc[(u,v)]))
seen[(u,v)] = True
if (v,u) in sp and pc[(u,v)] == pc[(v,u)]:
seen[(v,u)] = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment