From 201c66dd10571fa7d117653daf6b3a9172b7804f Mon Sep 17 00:00:00 2001 From: Stefan Bienert <stefan.bienert@unibas.ch> Date: Wed, 29 May 2019 10:52:01 +0200 Subject: [PATCH] Small documentation improvement. --- modules/mol/base/doc/entity.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/mol/base/doc/entity.rst b/modules/mol/base/doc/entity.rst index 8c2591684..47b4b9915 100644 --- a/modules/mol/base/doc/entity.rst +++ b/modules/mol/base/doc/entity.rst @@ -401,6 +401,12 @@ The Handle Classes print chain.residues # [B.GLY1, B.GLY4, B.GLY3] print chain.in_sequence # prints false + .. attribute:: residue_count + + Number of residues. Read-only. See :meth:`GetResidueCount`. + + :type: :class:`int` + .. attribute:: atoms Get list of all atoms of this chain. To access a single atom, use @@ -454,7 +460,11 @@ The Handle Classes .. method:: GetResidueList() - See :attr:`residues`. + See :attr:`residues` + + .. method:: GetResidueCount() + + See :attr:`residue_count` .. method:: FindAtom(res_num, atom_name) -- GitLab