Skip to content

Commit bc6e569

Browse files
committed
Fix 'divide by zero' error
1 parent 0c341ca commit bc6e569

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyTMHMM/hmm.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def viterbi(sequence,
2323
:return: a tuple consisting of the dynamic programming table and the
2424
optimal path.
2525
"""
26+
np.seterr(divide='ignore')
2627
sequence = sequence.upper()
2728

2829
cdef int no_observations = len(sequence)

0 commit comments

Comments
 (0)