Standardize get_aligned_pairs() API for PipelineAligner (closes #283010) draft
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Sat, 06 Dec 2014 15:14:32 +0100
changeset 496 17e421a5f319
parent 493 fd7910254c84
Standardize get_aligned_pairs() API for PipelineAligner (closes #283010) get_aligned_pairs() should actually return a triplet, the third element being the distance
rl/aligner.py
--- a/rl/aligner.py	Tue Nov 25 18:30:57 2014 +0100
+++ b/rl/aligner.py	Sat Dec 06 15:14:32 2014 +0100
@@ -283,7 +283,8 @@
             for pair in aligner.get_aligned_pairs(_refset, _targetset, unique):
                 self.pairs_found += 1
                 pair = ((pair[0][0], ref_index[pair[0][1]]),
-                        (pair[1][0], target_index[pair[1][1]]))
+                        (pair[1][0], target_index[pair[1][1]]),
+                        pair[2])
                 yield pair
                 seen_refset.add(pair[0][1])
             # Store stats