sponge.function.get_energy_unit

View Source On Gitee
sponge.function.get_energy_unit(unit)[source]

get energy unit.

Parameters

unit (Union[str, Units, Energy, float, int]) – Energy unit.

Returns

energy unit(str).

Supported Platforms:

Ascend GPU CPU