removed unnecessary code in mgxs_library.py

This commit is contained in:
Sam Shaner 2016-10-23 15:57:28 -04:00
parent b3b81cef4c
commit 3b40554673

View file

@ -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,