From cfd6baf5ad4bbdfc6002914cbfbed4e9af16e170 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Thu, 17 Mar 2022 21:44:34 -0500 Subject: [PATCH] Apply suggestions from @paulromano Co-authored-by: Paul Romano --- openmc/weight_windows.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openmc/weight_windows.py b/openmc/weight_windows.py index f7963628d..cbc807d06 100644 --- a/openmc/weight_windows.py +++ b/openmc/weight_windows.py @@ -533,9 +533,8 @@ def wwinp_to_wws(path): mesh.x_grid, mesh.y_grid, mesh.z_grid = grids # extract weight window values from array - particle_types = {0: 'neutron', 1: 'photon'} wws = [] - for p in range(ni): + for ne_i, nt_i, particle_type in zip(ne, nt, ('neutron', 'photon')): # no information to read for this particle if # either the energy bins or time bins are empty if ne[p] == 0 or nt[p] == 0: