Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
verktoy
PyMetric
Commits
265ef826
Commit
265ef826
authored
Feb 14, 2019
by
Runar Borge
Browse files
Fixes
#9
integer displayed as float
parent
b32bdde8
Changes
1
Hide whitespace changes
Inline
Side-by-side
model.py
View file @
265ef826
...
...
@@ -334,7 +334,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
...
...
@@ -807,7 +807,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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment