From 4fed6a5bb4e47af2b8c1d12e9c1e9ee2183a6f00 Mon Sep 17 00:00:00 2001 From: Brian Osborne Date: Mon, 13 Sep 2021 13:38:24 -0400 Subject: [PATCH] Correct deprecation warning --- pyTMHMM/hmm.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyTMHMM/hmm.pyx b/pyTMHMM/hmm.pyx index aa9e84f..8a491cc 100644 --- a/pyTMHMM/hmm.pyx +++ b/pyTMHMM/hmm.pyx @@ -35,10 +35,11 @@ def viterbi(sequence, transitions = np.log(transitions) emissions = np.log(emissions) + # Divide by zero warning is likely here cdef np.ndarray[DTYPE_t, ndim=2] M = \ np.zeros([2, no_states],dtype=DTYPE) cdef np.ndarray[np.int_t, ndim=2] P = \ - np.zeros([no_observations, no_states], dtype=np.int) + np.zeros([no_observations, no_states], dtype=int) cdef unsigned int i, j, k, max_state, next_state, observation cdef double max_state_prob, prob