Commit 92a7cec5 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd] Fix sort of boundaries in solutions

parent 9e60e305
......@@ -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 !
......
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