HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/astropy/constants/cgs.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Astronomical and physics constants in cgs units.  See :mod:`astropy.constants`
for a complete listing of constants defined in Astropy.
"""

from .config import codata, iaudata
from .constant import Constant

for _nm, _c in (*sorted(vars(codata).items()), *sorted(vars(iaudata).items())):
    if (
        isinstance(_c, Constant)
        and _c.abbrev not in locals()
        and _c.system in ["esu", "gauss", "emu"]
    ):
        locals()[_c.abbrev] = _c