Commit b2294400 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

Solutions: forgotten import; add example to get_query_from_filename

parent 0739812b
......@@ -33,6 +33,7 @@ from __future__ import unicode_literals
from __future__ import print_function
# Standard imports
import os
from collections import defaultdict
# Library imports
......@@ -46,6 +47,16 @@ LOGGER = cm.logger()
def get_query_from_filename(model_file, solution_file):
"""Return the query string according to the given model and solution filenames
.. code-block:: python
>>> get_query_from_filename(
... "/path/model.bcx",
... "/another_path/model_ENTITY_and_not_ENTITY_cam_complete.txt"
... )
:param model_file: Path of a bcx model.
:param solution_file: Path of a solution file (\*cam\* file).
:type model_file: <str>
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