bundles / scipy 1.17.1 / scipy / constants / _codata / unit
function
scipy.constants._codata:unit
Signature
def unit ( key : str ) → str Summary
Unit in physical_constants indexed by key
Parameters
key: Python stringKey in dictionary
physical_constants
Returns
unit: Python stringUnit in
physical_constantscorresponding tokey
Notes
Array API Standard Support
unit is not in-scope for support of Python Array API Standard compatible backends other than NumPy.
See dev-arrayapi for more information.
Examples
from scipy import constants constants.unit('proton mass')✓
Aliases
-
scipy.constants.unit