[aligner] Keep the distance matrix by default, closes #252735
authorVincent Michel <vincent.michel@logilab.fr>
Tue, 27 May 2014 15:13:41 +0200
changeset 442 1615cd653f1d
parent 441 99863e609845
child 443 2921c0bfc527
[aligner] Keep the distance matrix by default, closes #252735
rl/aligner.py
--- a/rl/aligner.py	Tue May 27 15:13:22 2014 +0200
+++ b/rl/aligner.py	Tue May 27 15:13:41 2014 +0200
@@ -163,10 +163,10 @@
         self.time = time.time() - start_time
         return global_mat, global_matched
 
-    def get_aligned_pairs(self, refset, targetset, unique=True):
+    def get_aligned_pairs(self, refset, targetset, unique=True, use_distance=True):
         """ Get the pairs of aligned elements
         """
-        global_mat, global_matched = self.align(refset, targetset, get_matrix=False)
+        global_mat, global_matched = self.align(refset, targetset, get_matrix=use_distance)
         for pair in iter_aligned_pairs(refset, targetset, global_mat, global_matched, unique):
             self.pairs_found += 1
             yield pair