From 9898eea1f23ab5ed7cddb9528f44448abcc6b788 Mon Sep 17 00:00:00 2001 From: samuel shaner Date: Sun, 29 May 2016 17:05:24 +0000 Subject: [PATCH] fixed issue with expanded elements into their naturally-occurring isotopes --- openmc/element.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/element.py b/openmc/element.py index 66371aba9a..c391d08235 100644 --- a/openmc/element.py +++ b/openmc/element.py @@ -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