add missing documentation

This commit is contained in:
Richard Berger
2023-06-10 07:45:52 -06:00
parent 235e98ee6a
commit 0e7d91b611
2 changed files with 11 additions and 1 deletions

View File

@ -748,6 +748,11 @@ class lammps(object):
# -------------------------------------------------------------------------
@property
def last_thermo_step(self):
""" Get the last timestep where thermodynamic data was computed
:return: the timestep or a negative number if there has not been any thermo output yet
:rtype: int
"""
with ExceptionCheck(self):
ptr = self.lib.lammps_last_thermo(self.lmp, c_char_p("step".encode()), 0)
return cast(ptr, POINTER(self.c_bigint)).contents.value
@ -760,7 +765,7 @@ class lammps(object):
data from the last timestep into a dictionary. The return value
is None, if there has not been any thermo output yet.
:return: value of thermo keyword
:return: a dictionary containing the last computed thermo output values
:rtype: dict or None
"""