mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Strip metastable info when getting atomic mass
This commit is contained in:
parent
6bb147fe8f
commit
45fb021e89
1 changed files with 4 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue