Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AGGI Projects
DING
Commits
2a5225a4
Commit
2a5225a4
authored
Jun 23, 2022
by
Leonard Heinrich Werner Bohnenkämper
Browse files
Fix erroneous casting of final distance for output.
parent
be8d46b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
parse_cplex_sol.py
View file @
2a5225a4
...
...
@@ -126,6 +126,6 @@ def main():
distfile
=
sys
.
stdout
if
not
args
.
noheader
:
distfile
.
write
(
"Solution-Type
\t
#Non-Deletion-Markers(+Telomere-Pairs)
\t
Distance
\n
"
)
distfile
.
write
(
"%s
\t
%d
\t
%d
\n
"
%
(
status
,
genes
,
distance
))
distfile
.
write
(
"%s
\t
%d
\t
%d
\n
"
%
(
status
,
genes
,
int
(
round
(
distance
))
))
main
()
parse_gurobi_sol.py
View file @
2a5225a4
...
...
@@ -131,6 +131,6 @@ def main():
distfile
=
sys
.
stdout
if
not
args
.
noheader
:
distfile
.
write
(
"Solution-Type
\t
#Non-Deletion-Markers(+Telomere-Pairs)
\t
Distance
\n
"
)
distfile
.
write
(
"%s
\t
%d
\t
%d
\n
"
%
(
status
,
genes
,
distance
))
distfile
.
write
(
"%s
\t
%d
\t
%d
\n
"
%
(
status
,
genes
,
int
(
round
(
distance
))
))
main
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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