From 4305ccf5ce1b7ebc3a0bd4102cd3a9577392d31e Mon Sep 17 00:00:00 2001 From: Adam Nelson Date: Thu, 7 May 2020 09:01:40 -0500 Subject: [PATCH] Additional fix: openmc.mgxs.Library was appending nuclide name to a cross section data set twice when creating the XsData object for the MGXSLibrary class --- openmc/mgxs/library.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openmc/mgxs/library.py b/openmc/mgxs/library.py index 54f97316e..afb04db07 100644 --- a/openmc/mgxs/library.py +++ b/openmc/mgxs/library.py @@ -1265,6 +1265,7 @@ class Library: i += 1 else: + # import pdb; pdb.set_trace() # Create the xsdata object and add it to the mgxs_file for i, domain in enumerate(self.domains): if self.by_nuclide: @@ -1277,8 +1278,6 @@ class Library: xsdata_name = 'set' + str(i + 1) else: xsdata_name = xsdata_names[i] - if nuclide != 'total': - xsdata_name += '_' + nuclide xsdata = self.get_xsdata(domain, xsdata_name, nuclide=nuclide, xs_type=xs_type)