From 0aba858f95d4350c91228bdfe9962c4bc64582d8 Mon Sep 17 00:00:00 2001 From: josh Date: Fri, 17 Feb 2023 02:15:50 +0000 Subject: [PATCH] sort nuclides when adding by element --- openmc/element.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/element.py b/openmc/element.py index 49aeaf4642..729266cc27 100644 --- a/openmc/element.py +++ b/openmc/element.py @@ -195,7 +195,7 @@ class Element(str): # If a cross_section library is not present, expand the element into # its natural nuclides else: - for nuclide in natural_nuclides: + for nuclide in sorted(list(natural_nuclides)): abundances[nuclide] = NATURAL_ABUNDANCE[nuclide] # Modify mole fractions if enrichment provided