Skip to content

Commit

Permalink
Tweak docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshanuikabundi committed Jan 22, 2025
1 parent ac65159 commit e43307a
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 66 deletions.
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

4 changes: 2 additions & 2 deletions docs/_templates/autosummary/module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@
{%- endfor %}

{% if types %}
.. rubric:: {{ _('Classes') }}
.. rubric:: {{ _('Other Objects') }}

.. autosummary::
:caption: Classes
:caption: Other Objects
:toctree:
:nosignatures:
{% for item in types %}
Expand Down
36 changes: 0 additions & 36 deletions docs/make.bat

This file was deleted.

3 changes: 2 additions & 1 deletion openff/pablo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from importlib.metadata import version

from . import ccd, exceptions, residue
from . import ccd, chem, exceptions, residue
from ._pdb import topology_from_pdb
from .ccd import CCD_RESIDUE_DEFINITION_CACHE

Expand All @@ -14,6 +14,7 @@
"exceptions",
"ccd",
"residue",
"chem",
]

__version__ = version("openff.pablo")
5 changes: 5 additions & 0 deletions openff/pablo/_pdb_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
from .exceptions import UnknownOrAmbiguousSerialInConectError
from .residue import AtomDefinition, ResidueDefinition

__all__ = [
"ResidueMatch",
"PdbData",
]


@dataclass(frozen=True)
class ResidueMatch:
Expand Down
8 changes: 6 additions & 2 deletions openff/pablo/_utils.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from collections import defaultdict
from collections.abc import Iterable, Iterator
from collections.abc import Callable, Iterable, Iterator, Mapping
from typing import (
DefaultDict,
TypeAlias,
TypeVar,
TypeVarTuple,
no_type_check,
)
from collections.abc import Callable, Mapping

from openff.toolkit.topology._mm_molecule import _SimpleMolecule
from openff.toolkit.topology.molecule import MoleculeLike
Expand All @@ -16,11 +15,16 @@
from pint import Quantity

__all__ = [
"default_dict",
"unwrap",
"sort_tuple",
"flatten",
"with_neighbours",
"float_or_unknown",
"dec_hex",
"int_or_none",
"cryst_to_box_vectors",
"assign_stereochemistry_from_3d",
"__UNSET__",
]

Expand Down
1 change: 1 addition & 0 deletions openff/pablo/ccd/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"add_protonation_variants",
"add_synonyms",
"disambiguate_alt_ids",
"add_disulfide_crosslink",
]


Expand Down
9 changes: 9 additions & 0 deletions openff/pablo/chem.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
"""
Chemical information for re-use across residue databases.
"""

from openff.pablo.residue import BondDefinition

__all__ = [
"DISULFIDE_BOND",
"PEPTIDE_BOND",
]

DISULFIDE_BOND = BondDefinition(
atom1="SG",
atom2="SG",
Expand Down
10 changes: 5 additions & 5 deletions openff/pablo/residue.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class ResidueDefinition:
``linking_bond.atom2`` are absent in the latter residue. Leaving atoms
are those that have the ``AtomDefinition.leaving`` attribute set to
``True``. A leaving atom is associated with atom `a` if it is bonded to
`a`, or it is bonded to an atom associated with `a`.
`a`, or it is bonded to a leaving atom associated with `a`.
- There is at least one leaving atom associated with each linking atom
The charge of linking atoms is not modified; any change in valence is
Expand Down Expand Up @@ -183,8 +183,8 @@ class ResidueDefinition:
- All leaving atoms associated with each residues' ``crosslink.atom1``
attribute are absent in that residue. Leaving atoms are those that have
the ``AtomDefinition.leaving`` attribute set to ``True``. A leaving atom
is associated with atom `a` if it is bonded to `a`, or it is bonded to an
atom associated with `a`.
is associated with atom `a` if it is bonded to `a`, or it is bonded to a
leaving atom associated with `a`.
- There is at least one leaving atom associated with each cross-linking atom
The charge of linking atoms is not modified; any change in valence is
Expand Down Expand Up @@ -242,7 +242,7 @@ def from_molecule(
description: str | None = None,
) -> Self:
"""
Create a ``ResidueDefinition`` from an :py:cls:`openff.toolkit.Molecule`
Create a ``ResidueDefinition`` from an :py:class:`openff.toolkit.Molecule`
Parameters
----------
Expand Down Expand Up @@ -349,7 +349,7 @@ def from_capped_molecule(
description: str | None = None,
) -> Self:
"""
Create a linking ``ResidueDefinition`` from an :py:cls:`openff.toolkit.Molecule`
Create a linking ``ResidueDefinition`` from an :py:class:`openff.toolkit.Molecule`
Parameters
----------
Expand Down

0 comments on commit e43307a

Please sign in to comment.