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
b2294400
Commit
b2294400
authored
Oct 30, 2018
by
VIGNET Pierre
Browse files
Solutions: forgotten import; add example to get_query_from_filename
parent
0739812b
Changes
1
Hide whitespace changes
Inline
Side-by-side
command_line/cadbiom_cmd/tools/solutions.py
View file @
b2294400
...
...
@@ -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
:Example:
.. code-block:: python
>>> get_query_from_filename(
... "/path/model.bcx",
... "/another_path/model_ENTITY_and_not_ENTITY_cam_complete.txt"
... )
"ENTITY_and_not_ENTITY"
:param model_file: Path of a bcx model.
:param solution_file: Path of a solution file (\*cam\* file).
:type model_file: <str>
...
...
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