mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
removed unnecessary code in mgxs_library.py
This commit is contained in:
parent
b3b81cef4c
commit
3b40554673
1 changed files with 0 additions and 17 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue