Skip to content

Commit

Permalink
Improve documentation for InvalidHMM in TraceAligner
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Oct 21, 2023
1 parent 81daebd commit b25f214
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/api/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,12 @@ InvalidParameter

.. autoexception:: InvalidParameter(ValueError)
:special-members: __init__
:members:
:members:


InvalidHMM
----------

.. autoexception:: InvalidHMM(ValueError)
:special-members: __init__
:members:
4 changes: 4 additions & 0 deletions docs/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,7 @@ API Reference
pyhmmer.errors.UnexpectedError
pyhmmer.errors.EaselError
pyhmmer.errors.AlphabetMismatch
pyhmmer.errors.ServerError
pyhmmer.errors.MissingCutoffs
pyhmmer.errors.InvalidParameter
pyhmmer.errors.InvalidHMM
4 changes: 4 additions & 0 deletions pyhmmer/plan7.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8752,6 +8752,8 @@ cdef class TraceAligner:
Raises:
`~pyhmmer.errors.AlphabetMismatch`: when the alphabet of any
of the sequences does not correspond to the HMM alphabet.
`~pyhmmer.errors.InvalidHMM`: when given a HMM that is not
valid.
.. versionchanged:: 0.7.0
Targets must now be inside a `~pyhmmer.easel.DigitalSequenceBlock`.
Expand Down Expand Up @@ -8839,6 +8841,8 @@ cdef class TraceAligner:
Raises:
`~pyhmmer.errors.AlphabetMismatch`: when the alphabet of any
of the sequences does not correspond to the HMM alphabet.
`~pyhmmer.errors.InvalidHMM`: when given a HMM that is not
valid.
.. versionchanged:: 0.7.0
Targets must now be inside a `~pyhmmer.easel.DigitalSequenceBlock`.
Expand Down

0 comments on commit b25f214

Please sign in to comment.