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

Fix the parsing of solution file names

parent 6e1df6e3
......@@ -82,8 +82,10 @@ def get_query_from_filename(model_file, solution_file):
model_filename = os.path.basename(os.path.splitext(model_file)[0])
solution_filename = os.path.basename(os.path.splitext(solution_file)[0])
solution_filename = solution_filename.replace(model_filename, '')
# Remove model_filename from solution_filename
solution_filename = solution_filename.replace(model_filename + '_', '')
# Remove suffix from solution_filename
if '_cam_complete' in solution_filename:
# remove _cam_complete
return solution_filename[:-13]
......
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