Commit 0f0ba6f4 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

Standardization: Rename sort_solutions => solutions_sort

parent e5952122
...@@ -46,7 +46,7 @@ def launch_researchs(args): ...@@ -46,7 +46,7 @@ def launch_researchs(args):
solution_search.launch_researchs(params) # ! solution_search.launch_researchs(params) # !
def launch_sort(args): def solutions_sort(args):
"""Read a solution file or a directory containing MAC solutions files """Read a solution file or a directory containing MAC solutions files
(*cam* files), and sort all frontier places/boundaries in alphabetical order. (*cam* files), and sort all frontier places/boundaries in alphabetical order.
""" """
...@@ -54,7 +54,7 @@ def launch_sort(args): ...@@ -54,7 +54,7 @@ def launch_sort(args):
# Module import # Module import
import solution_sort import solution_sort
params = args_to_param(args) params = args_to_param(args)
solution_sort.sort_solutions(params['path']) solution_sort.solutions_sort(params['path'])
def solutions_2_graph(args): def solutions_2_graph(args):
...@@ -260,12 +260,12 @@ def main(): ...@@ -260,12 +260,12 @@ def main():
# subparser: Sort solutions in alphabetical order in place # subparser: Sort solutions in alphabetical order in place
# Solution file (complete or not) # Solution file (complete or not)
parser_solutions_sort = subparsers.add_parser('sort_solutions', parser_solutions_sort = subparsers.add_parser('solutions_sort',
help=launch_sort.__doc__) help=solutions_sort.__doc__)
parser_solutions_sort.add_argument('path', parser_solutions_sort.add_argument('path',
help="Solution file or directory with MAC solutions files " help="Solution file or directory with MAC solutions files "
"(*cam* files) generated with the 'compute_macs' command.") "(*cam* files) generated with the 'compute_macs' command.")
parser_solutions_sort.set_defaults(func=launch_sort) parser_solutions_sort.set_defaults(func=solutions_sort)
# subparser: Representation of the trajectories of MACs in a complete file. # subparser: Representation of the trajectories of MACs in a complete file.
......
...@@ -116,7 +116,7 @@ def sort_solutions_in_file(filepath): ...@@ -116,7 +116,7 @@ def sort_solutions_in_file(filepath):
f_d.write(file_text) f_d.write(file_text)
def sort_solutions(path): def solutions_sort(path):
"""Entry point for sorting solutions. """Entry point for sorting solutions.
Read a solution(s) file(s) (*cam* files) and sort all Read a solution(s) file(s) (*cam* files) and sort all
......
Supports Markdown
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