From 4a0f32fc234099523eb0c2d425b0f34a4613937f Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Fri, 11 Mar 2022 09:28:07 -0600 Subject: [PATCH] Fixing ordering comment --- openmc/weight_windows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/weight_windows.py b/openmc/weight_windows.py index f878f618b0..024637e930 100644 --- a/openmc/weight_windows.py +++ b/openmc/weight_windows.py @@ -572,10 +572,10 @@ def wwinp_to_wws(path): e_bounds *= 1E6 # create an array for weight window lower bounds - # # MCNP ordering for weight windows matches that of OpenMC - # # ('xyz' with x changing fastest) ww_lb = np.zeros((*mesh.dimension, ne)) for ijk in mesh.indices: + # MCNP ordering for weight windows matches that of OpenMC + # ('xyz' with x changing fastest) idx = tuple([v - 1 for v in ijk] + [slice(None)]) ww_lb[idx] = [float(next(wwinp)) for _ in range(ne)]