From 13bbabd8cfa388593ea51ee2ab256480b66b8d22 Mon Sep 17 00:00:00 2001 From: Adam Nelson Date: Mon, 13 Feb 2017 19:51:25 -0500 Subject: [PATCH] old code cleanup --- openmc/mgxs_library.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/openmc/mgxs_library.py b/openmc/mgxs_library.py index 14fb3dddc..b4482d60b 100644 --- a/openmc/mgxs_library.py +++ b/openmc/mgxs_library.py @@ -2098,18 +2098,12 @@ class XSdata(object): # lines within each of the outgoing groups scatt_eouts = [] for g in range(self.energy_groups.num_groups): - nz = np.nonzero(energy[g, :]) - lo = nz[0][0] - hi = nz[0][-1] + 1 - # scatt_eouts.append( - # openmc.stats.Discrete(energy_midpoints[lo: hi], - # energy[g, lo:hi])) scatt_eouts.append( openmc.stats.Tabular(self.energy_groups.group_edges[:-1], energy[g, :], interpolation='histogram')) # Ensure the distribution CDF starts with 0 - scatt_eouts[-1].c = np.cumsum(energy[g, lo:hi]) - energy[g, lo] + scatt_eouts[-1].c = np.cumsum(energy[g, :]) - energy[g, 0] scatt_eouts.append(scatt_eouts[-1]) # Build the angular distributions associated with each outgoing energy