move versionadded tags to the top, replace some missed TBD with version info
This commit is contained in:
@ -506,9 +506,9 @@ class lammps(object):
|
||||
def error(self, error_type, error_text):
|
||||
"""Forward error to the LAMMPS Error class.
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_error` function of the C-library interface.
|
||||
.. versionadded:: 3Nov2022
|
||||
|
||||
.. versionadded:: TBD
|
||||
This is a wrapper around the :cpp:func:`lammps_error` function of the C-library interface.
|
||||
|
||||
:param error_type:
|
||||
:type error_type: int
|
||||
@ -1343,6 +1343,8 @@ class lammps(object):
|
||||
def gather_bonds(self):
|
||||
"""Retrieve global list of bonds
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_gather_bonds`
|
||||
function of the C-library interface.
|
||||
|
||||
@ -1350,8 +1352,6 @@ class lammps(object):
|
||||
flat list of ctypes integer values with the bond type, bond atom1,
|
||||
bond atom2 for each bond.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
:return: a tuple with the number of bonds and a list of c_int or c_long
|
||||
:rtype: (int, 3*nbonds*c_tagint)
|
||||
"""
|
||||
@ -1366,6 +1366,8 @@ class lammps(object):
|
||||
def gather_angles(self):
|
||||
"""Retrieve global list of angles
|
||||
|
||||
.. versionadded:: 8Feb2023
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_gather_angles`
|
||||
function of the C-library interface.
|
||||
|
||||
@ -1373,8 +1375,6 @@ class lammps(object):
|
||||
flat list of ctypes integer values with the angle type, angle atom1,
|
||||
angle atom2, angle atom3 for each angle.
|
||||
|
||||
.. versionadded:: TBD
|
||||
|
||||
:return: a tuple with the number of angles and a list of c_int or c_long
|
||||
:rtype: (int, 4*nangles*c_tagint)
|
||||
"""
|
||||
@ -1389,6 +1389,8 @@ class lammps(object):
|
||||
def gather_dihedrals(self):
|
||||
"""Retrieve global list of dihedrals
|
||||
|
||||
.. versionadded:: 8Feb2023
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_gather_dihedrals`
|
||||
function of the C-library interface.
|
||||
|
||||
@ -1396,8 +1398,6 @@ class lammps(object):
|
||||
flat list of ctypes integer values with the dihedral type, dihedral atom1,
|
||||
dihedral atom2, dihedral atom3, dihedral atom4 for each dihedral.
|
||||
|
||||
.. versionadded:: TBD
|
||||
|
||||
:return: a tuple with the number of dihedrals and a list of c_int or c_long
|
||||
:rtype: (int, 5*ndihedrals*c_tagint)
|
||||
"""
|
||||
@ -1412,6 +1412,8 @@ class lammps(object):
|
||||
def gather_impropers(self):
|
||||
"""Retrieve global list of impropers
|
||||
|
||||
.. versionadded:: 8Feb2023
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_gather_impropers`
|
||||
function of the C-library interface.
|
||||
|
||||
@ -1419,8 +1421,6 @@ class lammps(object):
|
||||
flat list of ctypes integer values with the improper type, improper atom1,
|
||||
improper atom2, improper atom3, improper atom4 for each improper.
|
||||
|
||||
.. versionadded:: TBD
|
||||
|
||||
:return: a tuple with the number of impropers and a list of c_int or c_long
|
||||
:rtype: (int, 5*nimpropers*c_tagint)
|
||||
"""
|
||||
@ -1659,13 +1659,13 @@ class lammps(object):
|
||||
def is_running(self):
|
||||
""" Report whether being called from a function during a run or a minimization
|
||||
|
||||
.. versionadded:: 9Oct2020
|
||||
|
||||
Various LAMMPS commands must not be called during an ongoing
|
||||
run or minimization. This property allows to check for that.
|
||||
This is a wrapper around the :cpp:func:`lammps_is_running`
|
||||
function of the library interface.
|
||||
|
||||
.. versionadded:: 9Oct2020
|
||||
|
||||
:return: True when called during a run otherwise false
|
||||
:rtype: bool
|
||||
"""
|
||||
@ -1676,12 +1676,13 @@ class lammps(object):
|
||||
def force_timeout(self):
|
||||
""" Trigger an immediate timeout, i.e. a "soft stop" of a run.
|
||||
|
||||
.. versionadded:: 9Oct2020
|
||||
|
||||
This function allows to cleanly stop an ongoing run or minimization
|
||||
at the next loop iteration.
|
||||
This is a wrapper around the :cpp:func:`lammps_force_timeout`
|
||||
function of the library interface.
|
||||
|
||||
.. versionadded:: 9Oct2020
|
||||
"""
|
||||
self.lib.lammps_force_timeout(self.lmp)
|
||||
|
||||
@ -1764,11 +1765,11 @@ class lammps(object):
|
||||
def has_package(self, name):
|
||||
""" Report if the named package has been enabled in the LAMMPS shared library.
|
||||
|
||||
.. versionadded:: 3Nov2022
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_config_has_package`
|
||||
function of the library interface.
|
||||
|
||||
.. versionadded:: TBD
|
||||
|
||||
:param name: name of the package
|
||||
:type name: string
|
||||
|
||||
@ -1908,11 +1909,11 @@ class lammps(object):
|
||||
def has_id(self, category, name):
|
||||
"""Returns whether a given ID name is available in a given category
|
||||
|
||||
.. versionadded:: 9Oct2020
|
||||
|
||||
This is a wrapper around the function :cpp:func:`lammps_has_id`
|
||||
of the library interface.
|
||||
|
||||
.. versionadded:: 9Oct2020
|
||||
|
||||
:param category: name of category
|
||||
:type category: string
|
||||
:param name: name of the ID
|
||||
@ -1928,11 +1929,11 @@ class lammps(object):
|
||||
def available_ids(self, category):
|
||||
"""Returns a list of IDs available for a given category
|
||||
|
||||
.. versionadded:: 9Oct2020
|
||||
|
||||
This is a wrapper around the functions :cpp:func:`lammps_id_count()`
|
||||
and :cpp:func:`lammps_id_name()` of the library interface.
|
||||
|
||||
.. versionadded:: 9Oct2020
|
||||
|
||||
:param category: name of category
|
||||
:type category: string
|
||||
|
||||
@ -1955,11 +1956,11 @@ class lammps(object):
|
||||
def available_plugins(self, category):
|
||||
"""Returns a list of plugins available for a given category
|
||||
|
||||
.. versionadded:: 10Mar2021
|
||||
|
||||
This is a wrapper around the functions :cpp:func:`lammps_plugin_count()`
|
||||
and :cpp:func:`lammps_plugin_name()` of the library interface.
|
||||
|
||||
.. versionadded:: 10Mar2021
|
||||
|
||||
:return: list of style/name pairs of loaded plugins
|
||||
:rtype: list
|
||||
"""
|
||||
@ -2024,11 +2025,11 @@ class lammps(object):
|
||||
def fix_external_get_force(self, fix_id):
|
||||
"""Get access to the array with per-atom forces of a fix external instance with a given fix ID.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_fix_external_get_force` function
|
||||
of the C-library interface.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
:param fix_id: Fix-ID of a fix external instance
|
||||
:type: string
|
||||
:return: requested data
|
||||
@ -2043,11 +2044,11 @@ class lammps(object):
|
||||
def fix_external_set_energy_global(self, fix_id, eng):
|
||||
"""Set the global energy contribution for a fix external instance with the given ID.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_fix_external_set_energy_global` function
|
||||
of the C-library interface.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
:param fix_id: Fix-ID of a fix external instance
|
||||
:type: string
|
||||
:param eng: potential energy value to be added by fix external
|
||||
@ -2062,11 +2063,11 @@ class lammps(object):
|
||||
def fix_external_set_virial_global(self, fix_id, virial):
|
||||
"""Set the global virial contribution for a fix external instance with the given ID.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_fix_external_set_virial_global` function
|
||||
of the C-library interface.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
:param fix_id: Fix-ID of a fix external instance
|
||||
:type: string
|
||||
:param eng: list of 6 floating point numbers with the virial to be added by fix external
|
||||
@ -2082,11 +2083,11 @@ class lammps(object):
|
||||
def fix_external_set_energy_peratom(self, fix_id, eatom):
|
||||
"""Set the per-atom energy contribution for a fix external instance with the given ID.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_fix_external_set_energy_peratom` function
|
||||
of the C-library interface.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
:param fix_id: Fix-ID of a fix external instance
|
||||
:type: string
|
||||
:param eatom: list of potential energy values for local atoms to be added by fix external
|
||||
@ -2105,11 +2106,11 @@ class lammps(object):
|
||||
def fix_external_set_virial_peratom(self, fix_id, vatom):
|
||||
"""Set the per-atom virial contribution for a fix external instance with the given ID.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_fix_external_set_virial_peratom` function
|
||||
of the C-library interface.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
:param fix_id: Fix-ID of a fix external instance
|
||||
:type: string
|
||||
:param vatom: list of natoms lists with 6 floating point numbers to be added by fix external
|
||||
@ -2137,11 +2138,11 @@ class lammps(object):
|
||||
def fix_external_set_vector_length(self, fix_id, length):
|
||||
"""Set the vector length for a global vector stored with fix external for analysis
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_fix_external_set_vector_length` function
|
||||
of the C-library interface.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
:param fix_id: Fix-ID of a fix external instance
|
||||
:type: string
|
||||
:param length: length of the global vector
|
||||
@ -2155,11 +2156,11 @@ class lammps(object):
|
||||
def fix_external_set_vector(self, fix_id, idx, val):
|
||||
"""Store a global vector value for a fix external instance with the given ID.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_fix_external_set_vector` function
|
||||
of the C-library interface.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
:param fix_id: Fix-ID of a fix external instance
|
||||
:type: string
|
||||
:param idx: 1-based index of the value in the global vector
|
||||
|
||||
@ -262,12 +262,12 @@ class numpy_wrapper:
|
||||
def gather_bonds(self):
|
||||
"""Retrieve global list of bonds as NumPy array
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
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.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
:return: the requested data as a 2d-integer numpy array
|
||||
:rtype: numpy.array(nbonds,3)
|
||||
"""
|
||||
@ -280,12 +280,12 @@ class numpy_wrapper:
|
||||
def gather_angles(self):
|
||||
""" Retrieve global list of angles as NumPy array
|
||||
|
||||
.. versionadded:: 8Feb2023
|
||||
|
||||
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.
|
||||
|
||||
.. versionadded:: TBD
|
||||
|
||||
:return: the requested data as a 2d-integer numpy array
|
||||
:rtype: numpy.array(nangles,4)
|
||||
"""
|
||||
@ -298,12 +298,12 @@ class numpy_wrapper:
|
||||
def gather_dihedrals(self):
|
||||
""" Retrieve global list of dihedrals as NumPy array
|
||||
|
||||
.. versionadded:: 8Feb2023
|
||||
|
||||
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.
|
||||
|
||||
.. versionadded:: TBD
|
||||
|
||||
:return: the requested data as a 2d-integer numpy array
|
||||
:rtype: numpy.array(ndihedrals,5)
|
||||
"""
|
||||
@ -316,12 +316,12 @@ class numpy_wrapper:
|
||||
def gather_impropers(self):
|
||||
""" Retrieve global list of impropers as NumPy array
|
||||
|
||||
.. versionadded:: 8Feb2023
|
||||
|
||||
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.
|
||||
|
||||
.. versionadded:: TBD
|
||||
|
||||
:return: the requested data as a 2d-integer numpy array
|
||||
:rtype: numpy.array(nimpropers,5)
|
||||
"""
|
||||
@ -334,13 +334,13 @@ class numpy_wrapper:
|
||||
def fix_external_get_force(self, fix_id):
|
||||
"""Get access to the array with per-atom forces of a fix external instance with a given fix ID.
|
||||
|
||||
.. versionchanged:: 28Jul2021
|
||||
|
||||
This function is a wrapper around the
|
||||
:py:meth:`lammps.fix_external_get_force() <lammps.lammps.fix_external_get_force()>`
|
||||
method. It behaves the same as the original method, but returns a NumPy array instead
|
||||
of a ``ctypes`` pointer.
|
||||
|
||||
.. versionchanged:: 28Jul2021
|
||||
|
||||
:param fix_id: Fix-ID of a fix external instance
|
||||
:type: string
|
||||
:return: requested data
|
||||
@ -356,13 +356,13 @@ class numpy_wrapper:
|
||||
def fix_external_set_energy_peratom(self, fix_id, eatom):
|
||||
"""Set the per-atom energy contribution for a fix external instance with the given ID.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
This function is an alternative to
|
||||
:py:meth:`lammps.fix_external_set_energy_peratom() <lammps.lammps.fix_external_set_energy_peratom()>`
|
||||
method. It behaves the same as the original method, but accepts a NumPy array
|
||||
instead of a list as argument.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
:param fix_id: Fix-ID of a fix external instance
|
||||
:type: string
|
||||
:param eatom: per-atom potential energy
|
||||
@ -383,13 +383,13 @@ class numpy_wrapper:
|
||||
def fix_external_set_virial_peratom(self, fix_id, vatom):
|
||||
"""Set the per-atom virial contribution for a fix external instance with the given ID.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
This function is an alternative to
|
||||
:py:meth:`lammps.fix_external_set_virial_peratom() <lammps.lammps.fix_external_set_virial_peratom()>`
|
||||
method. It behaves the same as the original method, but accepts a NumPy array
|
||||
instead of a list as argument.
|
||||
|
||||
.. versionadded:: 28Jul2021
|
||||
|
||||
:param fix_id: Fix-ID of a fix external instance
|
||||
:type: string
|
||||
:param eatom: per-atom potential energy
|
||||
|
||||
Reference in New Issue
Block a user