Merge pull request #662 from samuelshaner/hotfix-element-expand

fixed issue with expanded elements into their naturally-occurring isotopes
This commit is contained in:
Will Boyd 2016-05-29 12:46:25 -05:00
commit 72398761ce

View file

@ -127,7 +127,7 @@ class Element(object):
isotopes = []
for isotope, abundance in natural_abundance.items():
if isotope.startswith(self.name):
if isotope.startswith(self.name + '-'):
nuc = openmc.Nuclide(isotope, self.xs)
isotopes.append((nuc, abundance))
return isotopes