External Naming¶
Functions to handle the conversion between external and internal naming conventions.
- metatrain.utils.external_naming.to_external_name(internal_name: str, quantities: Dict[str, ModelOutput]) str [source]¶
Converts internal names to external names.
Very often, the “common” names for quantities are different from the internal names used in the code. Two important examples are forces and virials, which are referred to as energy_positions_gradients and energy_strain_gradients, respectively, in the code. This function converts an internal name to an external name.
- Parameters:
internal_name (str) – An internal name to convert.
quantities (Dict[str, ModelOutput]) – A dictionary of physical quantities, either as
TargetInfo
objects or asModelOutput
objects.
- Returns:
The name for external use.
- Return type: