Skip to content

Commit

Permalink
Fix bug with model composition and cutoffs in HMM.__setstate__ (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Apr 25, 2024
1 parent c5234e5 commit 7b1ffb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyhmmer/plan7.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7b1ffb8

Please sign in to comment.