fixed issue with expanded elements into their naturally-occurring isotopes

This commit is contained in:
samuel shaner 2016-05-29 17:05:24 +00:00
parent f9c44a99c1
commit 9898eea1f2

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