Commit 7f790db7 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

Rename model_comp to model_comparison

parent 89a67cbc
......@@ -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_comparison(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_comparison',
help=model_comparison.__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_comparison)
# subparser: Model infos
......
......@@ -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
......
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