deepmd.tf.utils.compat

Alias for backward compatibility.

Module Contents

Functions

convert_input_v0_v1(→ Dict[str, Any])

Convert input from v0 format to v1.

convert_input_v1_v2(→ Dict[str, Any])

deprecate_numb_test(→ Dict[str, Any])

Deprecate numb_test since v2.1. It has taken no effect since v2.0.

update_deepmd_input(→ Dict[str, Any])

deepmd.tf.utils.compat.convert_input_v0_v1(jdata: Dict[str, Any], warning: bool = True, dump: str | pathlib.Path | None = None) Dict[str, Any][source]

Convert input from v0 format to v1.

Parameters:
jdataDict[str, Any]

loaded json/yaml file

warningbool, optional

whether to show deprecation warning, by default True

dumpOptional[Union[str, Path]], optional

whether to dump converted file, by default None

Returns:
Dict[str, Any]

converted output

deepmd.tf.utils.compat.convert_input_v1_v2(jdata: Dict[str, Any], warning: bool = True, dump: str | pathlib.Path | None = None) Dict[str, Any][source]
deepmd.tf.utils.compat.deprecate_numb_test(jdata: Dict[str, Any], warning: bool = True, dump: str | pathlib.Path | None = None) Dict[str, Any][source]

Deprecate numb_test since v2.1. It has taken no effect since v2.0.

See #1243.

Parameters:
jdataDict[str, Any]

loaded json/yaml file

warningbool, optional

whether to show deprecation warning, by default True

dumpOptional[Union[str, Path]], optional

whether to dump converted file, by default None

Returns:
Dict[str, Any]

converted output

deepmd.tf.utils.compat.update_deepmd_input(jdata: Dict[str, Any], warning: bool = True, dump: str | pathlib.Path | None = None) Dict[str, Any][source]