Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
e99b25ca
Commit
e99b25ca
authored
Jan 23, 2017
by
VIGNET Pierre
Browse files
Sort all frontier places when dump them to outputfile...
parent
73952d0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
cadbiom/models/clause_constraints/mcl/MCLSolutions.py
View file @
e99b25ca
...
...
@@ -381,15 +381,11 @@ class FrontierSolution(object):
"""
Save a symbolic solution in a file
The format is readable by the simulator
@param outfile: writable file
@param outfile: writable file
"""
outfile
.
write
(
self
.
activated_frontier
[
0
])
for
frp
in
self
.
activated_frontier
[
1
:]:
outfile
.
write
(
" "
+
frp
)
for
seq
in
self
.
ic_sequence
:
outfile
.
write
(
"
\n
"
+
seq
)
outfile
.
write
(
"
\n
"
)
outfile
.
write
(
' '
.
join
(
sorted
(
self
.
activated_frontier
))
+
'
\n
'
)
outfile
.
write
(
'
\n
'
.
join
(
self
.
ic_sequence
)
+
'
\n
'
)
outfile
.
flush
()
...
...
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