Apply suggestions from @paulromano

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Patrick Shriwise 2022-03-17 21:44:34 -05:00 committed by GitHub
parent faa142c78d
commit cfd6baf5ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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