Strip metastable info when getting atomic mass

This commit is contained in:
Paul Romano 2016-08-08 07:05:55 -05:00
parent 6bb147fe8f
commit 45fb021e89

View file

@ -213,4 +213,8 @@ def atomic_mass(isotope):
line[100:106] + '.' + line[107:112])
_ATOMIC_MASS[name.lower()] = mass
# Get rid of metastable information
if '_' in isotope:
isotope = isotope[:isotope.find('_')]
return _ATOMIC_MASS.get(isotope.lower())