opendrift.models.openoil.adios.models.oil.version

class to handle the version number

Module Contents

Classes

Version

class to represent a version with major, minor, and patch components

exception opendrift.models.openoil.adios.models.oil.version.VersionError[source]

Bases: ValueError

Inappropriate argument value (of correct type).

Initialize self. See help(type(self)) for accurate signature.

class opendrift.models.openoil.adios.models.oil.version.Version(major, minor=0, patch=0)[source]

class to represent a version with major, minor, and patch components

initialize and instance object

__repr__()[source]

Return repr(self).

__str__()[source]

Return str(self).

py_json(sparse=True)[source]
static _parts_from_string(string)[source]
classmethod from_py_json(py_json, allow_none=False)[source]
__eq__(other)[source]

Return self==value.

__gt__(other)[source]

Return self>value.