pint.utils.get_unit
- pint.utils.get_unit(parname)[source]
Return the unit associated with a parameter
Handles normal parameters, along with aliases and indexed parameters (e.g., pint.models.parameter.prefixParameter and pint.models.parameter.maskParameter) with an index beyond those currently initialized.
This can be used without an existing
TimingModel
.- Parameters:
name (str) – Name of PINT parameter or alias
- Return type:
astropy.u.Unit