[Matrix] Adapt the globalalignmentmatrix computation to the previous changeset
authorSimon Chabot <simon.chabot@logilab.fr>
Thu, 25 Oct 2012 16:41:53 +0200
changeset 47 597f6b039bca
parent 46 4c2f7553490b
child 48 a0a6d2c8ba56
[Matrix] Adapt the globalalignmentmatrix computation to the previous changeset (4c2f7553490b)
matrix.py
--- a/matrix.py	Thu Oct 25 16:40:42 2012 +0200
+++ b/matrix.py	Thu Oct 25 16:41:53 2012 +0200
@@ -163,9 +163,7 @@
        /!\ All `input1` and `input2` of each tuple must have the same size
            in twos
     """
-    globalmatrix = items[0][0] * Distancematrix(*items[0][1:])
+    globalmatrix = Distancematrix(*items[0])
     for item in items[1:]:
-        tmp =  item[0] * Distancematrix(*item[1:])
-        print tmp._maxdist
-        globalmatrix +=  tmp
+        globalmatrix +=  Distancematrix(*item)
     return globalmatrix