Skip to content

Commit

Permalink
#421 -- Add type/shape info to conformer and partial charge docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
j-wags committed Sep 20, 2019
1 parent b0aad6d commit 4703f9f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions openforcefield/topology/molecule.py
Expand Up @@ -272,7 +272,7 @@ def partial_charge(self):
Returns
-------
float or None
simtk.unit.Quantity-wrapped float or None
"""
if self._molecule._partial_charges is None:
return None
Expand Down Expand Up @@ -2479,8 +2479,9 @@ def _add_conformer(self, coordinates):
Parameters
----------
coordinates: A simtk vector wrapped unit quantity
The coordinates of the conformer to add.
coordinates: simtk.unit.Quantity(np.array) with shape (n_atoms, 3)
Coordinates of the new conformer, with the first dimension of the array corresponding to the atom index in
the Molecule's indexing system.
Returns
-------
Expand Down Expand Up @@ -2604,14 +2605,15 @@ def atoms(self):
@property
def conformers(self):
"""
Iterate over all conformers in this molecule.
Returns the list of conformers for this molecule. This returns a list of simtk.unit.Quantity-wrapped numpy
arrays, of shape 3 x n_atoms.
"""
return self._conformers

@property
def n_conformers(self):
"""
Iterate over all Atom objects.
Returns the number of conformers for this molecule.
"""
if self._conformers is None:
return 0
Expand Down Expand Up @@ -3766,7 +3768,5 @@ def add_conformer(self, coordinates):
-------
index: int
Index of the conformer in the Molecule
"""
"""
return self._add_conformer(coordinates)

0 comments on commit 4703f9f

Please sign in to comment.