Commit 70449d46 by Frédéric Boyer

[MOD] Corrected a bug in initialization of 'word4table' that 'coredump' on linux

parent 713d621d
......@@ -158,7 +158,7 @@ def lenlcs(seq1,seq2,double minimum=0.,bint normalized=False, int reference=ALIL
lcs = lcsali.doAlignment()
else:
if minimum > 0.:
if isinstance(seq1, BioSequence) and hasattr(seq1, "word4table"):
if isinstance(seq1, BioSequence) and hasattr(seq1, "word4table") and seq1.word4table is not None:
w1 = seq1.word4table
o1 = seq1.word4over
else:
......@@ -167,7 +167,7 @@ def lenlcs(seq1,seq2,double minimum=0.,bint normalized=False, int reference=ALIL
if isinstance(seq1, BioSequence):
seq1.word4table=w1
seq1.word4over=o1
if isinstance(seq2, BioSequence) and hasattr(seq2, "word4table"):
if isinstance(seq2, BioSequence) and hasattr(seq2, "word4table") and seq2.word4table is not None:
w2 = seq2.word4table
o2 = seq2.word4over
else:
......
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