lmmentel / mendeleev

A python package for accessing various properties of elements, ions and isotopes in the periodic table of elements.
https://mendeleev.readthedocs.io
MIT License
208 stars 38 forks source link

Update Isotope.half_life_unit values #160

Closed lmmentel closed 1 month ago

lmmentel commented 1 month ago

Isotope half life units are updated to be unambiguous, following these substitutions:

unit_subs = {
    'Ey': "Eyear",
    'Gy': "Gyear",
    'My': "Myear",
    'Py': "Pyear",
    'Ty': "Tyear",
    'Yy': "Yyear",
    'Zy': "Zyear",
    'as': "asec",
    'd': "day",
    'h': "hour",
    'ky': "kyear",
    'm': "minute",
    'ms': "msec",
    'ns': "nsec",
    'ps': "psec",
    's': "sec",
    'us': "usec",
    'y': "year",
    'ys': "ysec",
    'zs': "zsec",
}

With this change units can now be correctly parsed by pint.

Changes

fixes #157