Commit 0f44e223 authored by Yoann Dufresne's avatar Yoann Dufresne

bugfix edit path

parent 01f9f006
......@@ -380,7 +380,7 @@ def compute_shortest_edit_path(path):
edit_path = edit_distance(molecule_order, d2_path_order)
filtered_edit_path = [x[0] for x in edit_path if x[0] == x[1]]
reverse_edit_path = edit_distance(molecule_order, d2_path_order[::-1])
reverse_filtered_edit_path = [x[0] for x in edit_path if x[0] == x[1]]
reverse_filtered_edit_path = [x[0] for x in reverse_edit_path if x[0] == x[1]]
if len(filtered_edit_path) > len(reverse_filtered_edit_path):
return filtered_edit_path
......
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