get_factor¶
- atomate2.common.schemas.phonons.get_factor(code)[source]¶
Get the frequency conversion factor to THz for each code.
- Parameters:
code (str) – The code to get the conversion factor for
- Returns:
The correct conversion factor
- Return type:
- Raises:
ValueError – If code is not defined