From 7b1ffb8322982a6b7af4792fb132ccd0d8d70c57 Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Thu, 25 Apr 2024 13:00:12 +0200 Subject: [PATCH] Fix bug with model composition and cutoffs in `HMM.__setstate__` (#67) --- pyhmmer/plan7.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhmmer/plan7.pyx b/pyhmmer/plan7.pyx index 329a4a4..b5cf931 100644 --- a/pyhmmer/plan7.pyx +++ b/pyhmmer/plan7.pyx @@ -2531,7 +2531,7 @@ cdef class HMM: compo = state["compo"] assert compo.ndim == 1 assert compo.shape[0] == K - memcpy(&self._hmm.cutoff[0], &compo[0], K * sizeof(float)) + memcpy(&self._hmm.compo[0], &compo[0], K * sizeof(float)) # copy alignment map only if it is available if self._hmm.flags & p7H_MAP == 0: