From bc6e5697207def4bfe98cd5ff0e24670dd04cdfb Mon Sep 17 00:00:00 2001 From: Brian Osborne Date: Sat, 24 Feb 2024 12:31:21 -0500 Subject: [PATCH] Fix 'divide by zero' error --- pyTMHMM/hmm.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/pyTMHMM/hmm.pyx b/pyTMHMM/hmm.pyx index bff9e27..589cc53 100644 --- a/pyTMHMM/hmm.pyx +++ b/pyTMHMM/hmm.pyx @@ -23,6 +23,7 @@ def viterbi(sequence, :return: a tuple consisting of the dynamic programming table and the optimal path. """ + np.seterr(divide='ignore') sequence = sequence.upper() cdef int no_observations = len(sequence)