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
92a7cec5
Commit
92a7cec5
authored
Aug 28, 2019
by
VIGNET Pierre
Browse files
[cmd] Fix sort of boundaries in solutions
parent
9e60e305
Changes
1
Hide whitespace changes
Inline
Side-by-side
command_line/cadbiom_cmd/solution_search.py
View file @
92a7cec5
...
...
@@ -330,10 +330,10 @@ def find_mac(mcla,
next_mac_object
.
save
(
file
)
# Save MAC (in alphabetic order...)
next_mac
=
sorted
(
next_mac_object
.
activated_frontier
)
next_mac
=
sorted
(
next_mac_object
.
activated_frontier
,
key
=
lambda
s
:
s
.
lower
()
)
LOGGER
.
debug
(
"%s:: Save next MAC: %s"
,
final_prop
,
next_mac
)
with
open
(
mac_file
,
'a'
)
as
file
:
file
.
write
(
" "
.
join
(
sorted
(
next_mac
,
key
=
lambda
s
:
s
.
lower
()))
+
'
\n
'
)
file
.
write
(
" "
.
join
(
next_mac
)
+
'
\n
'
)
# Save min steps
min_step
=
mcla
.
unfolder
.
get_current_step
()
-
1
# Magic number !
...
...
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