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
7f790db7
Commit
7f790db7
authored
Oct 25, 2018
by
VIGNET Pierre
Browse files
Rename model_comp to model_comparison
parent
89a67cbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
command_line/cadbiom_cmd/cadbiom_cmd.py
View file @
7f790db7
...
...
@@ -93,11 +93,11 @@ def solutions_2_json(args):
conditions
=
not
params
[
'no_conditions'
],
# Reverse the param...
)
def
model_comp
(
args
):
"""
Model consistency checking
.
def
model_comp
arison
(
args
):
"""
Isomorphism test
.
Check if the graphs
of two
models have the same topology,
nodes & edges
attributes/roles.
Check if the graphs
based on the two given
models have
the same topology,
nodes & edges
attributes/roles.
"""
# Module import
...
...
@@ -328,8 +328,8 @@ def main():
# subparser: Model comparison
# 2 models
parser_model_comparison
=
subparsers
.
add_parser
(
'model_comp'
,
help
=
model_comp
.
__doc__
,
'model_comp
arison
'
,
help
=
model_comp
arison
.
__doc__
,
formatter_class
=
argparse
.
ArgumentDefaultsHelpFormatter
)
parser_model_comparison
.
add_argument
(
'model_file_1'
,
...
...
@@ -344,7 +344,7 @@ def main():
parser_model_comparison
.
add_argument
(
'--output'
,
action
=
ReadableDir
,
nargs
=
'?'
,
default
=
'graphs/'
,
help
=
"Directory for created graphs files."
)
parser_model_comparison
.
set_defaults
(
func
=
model_comp
)
parser_model_comparison
.
set_defaults
(
func
=
model_comp
arison
)
# subparser: Model infos
...
...
command_line/cadbiom_cmd/solution_repr.py
View file @
7f790db7
...
...
@@ -296,8 +296,8 @@ def graph_isomorph_test(model_file_1, model_file_2, output_dir='graphs/',
make_graphs
=
False
,
make_json
=
False
):
"""Entry point for model consistency checking.
This functions checks if the
2 given models have the same topology,
nodes & edges attributes/roles.
This functions checks if the
graphs based on the two given models have
the same topology,
nodes & edges attributes/roles.
.. note:: cf graphmatcher
https://networkx.github.io/documentation/development/reference/generated/networkx.algorithms.isomorphism.categorical_edge_match.html
...
...
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