sponge.function.set_global_units
- sponge.function.set_global_units(length_unit: Union[str, Units, Length, float, int] = None, energy_unit: Union[str, Units, Length, float, int] = None, units: Units = None)[source]
set global units.
- Parameters
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> from sponge import set_global_units >>> set_global_units('nm', 'kj/mol')