Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
0f0ba6f4
Commit
0f0ba6f4
authored
Oct 26, 2018
by
VIGNET Pierre
Browse files
Standardization: Rename sort_solutions => solutions_sort
parent
e5952122
Changes
2
Hide whitespace changes
Inline
Side-by-side
command_line/cadbiom_cmd/cadbiom_cmd.py
View file @
0f0ba6f4
...
...
@@ -46,7 +46,7 @@ def launch_researchs(args):
solution_search
.
launch_researchs
(
params
)
# !
def
launch
_sort
(
args
):
def
solutions
_sort
(
args
):
"""Read a solution file or a directory containing MAC solutions files
(*cam* files), and sort all frontier places/boundaries in alphabetical order.
"""
...
...
@@ -54,7 +54,7 @@ def launch_sort(args):
# Module import
import
solution_sort
params
=
args_to_param
(
args
)
solution_sort
.
sort_
solutions
(
params
[
'path'
])
solution_sort
.
solutions
_sort
(
params
[
'path'
])
def
solutions_2_graph
(
args
):
...
...
@@ -260,12 +260,12 @@ def main():
# subparser: Sort solutions in alphabetical order in place
# Solution file (complete or not)
parser_solutions_sort
=
subparsers
.
add_parser
(
'
sort_
solutions'
,
help
=
launch
_sort
.
__doc__
)
parser_solutions_sort
=
subparsers
.
add_parser
(
'solutions
_sort
'
,
help
=
solutions
_sort
.
__doc__
)
parser_solutions_sort
.
add_argument
(
'path'
,
help
=
"Solution file or directory with MAC solutions files "
"(*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.
...
...
command_line/cadbiom_cmd/solution_sort.py
View file @
0f0ba6f4
...
...
@@ -116,7 +116,7 @@ def sort_solutions_in_file(filepath):
f_d
.
write
(
file_text
)
def
sort_
solutions
(
path
):
def
solutions
_sort
(
path
):
"""Entry point for sorting solutions.
Read a solution(s) file(s) (*cam* files) and sort all
...
...
Write
Preview
Supports
Markdown
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