aiida_lammps.utils#

General utility functions for aiida-lammps

Module Contents#

Classes#

RestartTypes

Enumeration of the known relax types

Functions#

aiida_version()

get the version of aiida in use

cmp_version(string)

convert a version string to a packaging.version.Version

aiida_lammps.utils.aiida_version()[source]#

get the version of aiida in use

Returns:

packaging.version.Version

aiida_lammps.utils.cmp_version(string)[source]#

convert a version string to a packaging.version.Version

class aiida_lammps.utils.RestartTypes(*args, **kwds)[source]#

Bases: enum.Enum

Enumeration of the known relax types

FROM_SCRATCH = 'from_scratch'[source]#
FROM_RESTARTFILE = 'from_restartfile'[source]#
FROM_REMOTEFOLDER = 'from_remotefolder'[source]#
FROM_STRUCTURE = 'from_structure'[source]#