deepmd.utils.version

Module Contents

Functions

check_version_compatibility(current_version, ...[, ...])

Check if the current version is compatible with the supported versions.

deepmd.utils.version.check_version_compatibility(current_version: int, maximum_supported_version: int, minimal_supported_version: int = 1)[source]

Check if the current version is compatible with the supported versions.

Parameters:
current_versionint

The current version.

maximum_supported_versionint

The maximum supported version.

minimal_supported_versionint, optional

The minimal supported version. Default is 1.

Raises:
ValueError

If the current version is not compatible with the supported versions.