From 3b40554673bf25e0cfaaefaf817028bd626cdf1b Mon Sep 17 00:00:00 2001 From: Sam Shaner Date: Sun, 23 Oct 2016 15:57:28 -0400 Subject: [PATCH] removed unnecessary code in mgxs_library.py --- openmc/mgxs_library.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/openmc/mgxs_library.py b/openmc/mgxs_library.py index 3da26f0305..8199a27515 100644 --- a/openmc/mgxs_library.py +++ b/openmc/mgxs_library.py @@ -659,16 +659,6 @@ class XSdata(object): # Get the accepted shapes for this xs shapes = [self.xs_shapes["[G']"], self.xs_shapes["[DG][G']"]] - # Get the accepted shapes for this xs - if self.representation is 'isotropic': - shapes = [(self.energy_groups.num_groups,), - (self.num_delayed_groups, self.energy_groups.num_groups)] - else: - shapes = [(self.num_polar, self.num_azimuthal, - self.energy_groups.num_groups), - (self.num_delayed_groups, self.num_polar, - self.num_azimuthal, self.energy_groups.num_groups)] - # Convert to a numpy array so we can easily get the shape for checking chi_delayed = np.asarray(chi_delayed) check_value('chi delayed shape', chi_delayed.shape, shapes) @@ -893,13 +883,6 @@ class XSdata(object): # Get the accepted shapes for this xs shapes = [self.xs_shapes["[DG][G]"]] - # Get the accepted shapes for this xs - if self.representation is 'isotropic': - shapes = [(self.num_delayed_groups, self.energy_groups.num_groups,)] - else: - shapes = [(self.num_delayed_groups, self.num_polar, - self.num_azimuthal, self.energy_groups.num_groups)] - # Convert to a numpy array so we can easily get the shape for checking delayed_nu_fission = np.asarray(delayed_nu_fission) check_value('delayed_nu_fission shape', delayed_nu_fission.shape,