Unit handling¶
- metatrain.utils.units.get_gradient_units(base_unit: str, gradient_name: str, length_unit: str) str [source]¶
Get the gradient units based on the unit of the base quantity.
For example, if the base unit is “<unit>” and the gradient name is “positions”, the gradient unit will be “<unit>/<length_unit>”.