misc doc fixes to python section
This commit is contained in:
@ -2067,7 +2067,7 @@ class lammps(object):
|
||||
""" List of the names of enabled packages in the LAMMPS shared library
|
||||
|
||||
This is a wrapper around the functions :cpp:func:`lammps_config_package_count`
|
||||
and :cpp:func`lammps_config_package_name` of the library interface.
|
||||
and :cpp:func:`lammps_config_package_name` of the library interface.
|
||||
|
||||
:return
|
||||
"""
|
||||
|
||||
@ -271,11 +271,11 @@ class numpy_wrapper:
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
def gather_bonds(self):
|
||||
"""Retrieve global list of bonds as NumPy array
|
||||
"""Retrieve global list of bonds as a NumPy array
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
This is a wrapper around :py:meth:`lammps.gather_bonds() <lammps.lammps.gather_bonds()>`
|
||||
This is a wrapper around :py:meth:`lammps.gather_bonds() <lammps.lammps.gather_bonds()>`.
|
||||
It behaves the same as the original method, but returns a NumPy array instead
|
||||
of a ``ctypes`` list.
|
||||
|
||||
@ -289,11 +289,11 @@ class numpy_wrapper:
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
def gather_angles(self):
|
||||
""" Retrieve global list of angles as NumPy array
|
||||
""" Retrieve global list of angles as a NumPy array
|
||||
|
||||
.. versionadded:: 8Feb2023
|
||||
|
||||
This is a wrapper around :py:meth:`lammps.gather_angles() <lammps.lammps.gather_angles()>`
|
||||
This is a wrapper around :py:meth:`lammps.gather_angles() <lammps.lammps.gather_angles()>`.
|
||||
It behaves the same as the original method, but returns a NumPy array instead
|
||||
of a ``ctypes`` list.
|
||||
|
||||
@ -307,11 +307,11 @@ class numpy_wrapper:
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
def gather_dihedrals(self):
|
||||
""" Retrieve global list of dihedrals as NumPy array
|
||||
""" Retrieve global list of dihedrals as a NumPy array
|
||||
|
||||
.. versionadded:: 8Feb2023
|
||||
|
||||
This is a wrapper around :py:meth:`lammps.gather_dihedrals() <lammps.lammps.gather_dihedrals()>`
|
||||
This is a wrapper around :py:meth:`lammps.gather_dihedrals() <lammps.lammps.gather_dihedrals()>`.
|
||||
It behaves the same as the original method, but returns a NumPy array instead
|
||||
of a ``ctypes`` list.
|
||||
|
||||
@ -325,11 +325,11 @@ class numpy_wrapper:
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
def gather_impropers(self):
|
||||
""" Retrieve global list of impropers as NumPy array
|
||||
""" Retrieve global list of impropers as a NumPy array
|
||||
|
||||
.. versionadded:: 8Feb2023
|
||||
|
||||
This is a wrapper around :py:meth:`lammps.gather_impropers() <lammps.lammps.gather_impropers()>`
|
||||
This is a wrapper around :py:meth:`lammps.gather_impropers() <lammps.lammps.gather_impropers()>`.
|
||||
It behaves the same as the original method, but returns a NumPy array instead
|
||||
of a ``ctypes`` list.
|
||||
|
||||
|
||||
@ -358,6 +358,7 @@ class Atom2D(Atom):
|
||||
@property
|
||||
def velocity(self):
|
||||
"""Access to velocity of an atom
|
||||
|
||||
:getter: Return velocity of atom
|
||||
:setter: Set velocity of atom
|
||||
:type: numpy.array (float, float)
|
||||
@ -372,6 +373,7 @@ class Atom2D(Atom):
|
||||
@property
|
||||
def force(self):
|
||||
"""Access to force of an atom
|
||||
|
||||
:getter: Return force of atom
|
||||
:setter: Set force of atom
|
||||
:type: numpy.array (float, float)
|
||||
@ -418,7 +420,7 @@ class PyLammps(object):
|
||||
"""
|
||||
This is a Python wrapper class around the lower-level
|
||||
:py:class:`lammps` class, exposing a more Python-like,
|
||||
object-oriented interface for prototyping system inside of IPython and
|
||||
object-oriented interface for prototyping systems inside of IPython and
|
||||
Jupyter notebooks.
|
||||
|
||||
It either creates its own instance of :py:class:`lammps` or can be
|
||||
@ -556,7 +558,7 @@ class PyLammps(object):
|
||||
Commands will be added to the command history but not executed.
|
||||
|
||||
Add `commands` only to the command history, but do not execute them, so that you can
|
||||
conveniently create Lammps input files, using
|
||||
conveniently create LAMMPS input files, using
|
||||
:py:meth:`PyLammps.write_script()`.
|
||||
"""
|
||||
self._cmd_history.append(cmd)
|
||||
@ -908,7 +910,7 @@ class PyLammps(object):
|
||||
|
||||
class IPyLammps(PyLammps):
|
||||
"""
|
||||
IPython wrapper for LAMMPS which adds embedded graphics capabilities to PyLammmps interface
|
||||
IPython wrapper for LAMMPS which adds embedded graphics capabilities to PyLammps interface
|
||||
|
||||
It either creates its own instance of :py:class:`lammps` or can be
|
||||
initialized with an existing instance. The arguments are the same of the
|
||||
|
||||
Reference in New Issue
Block a user