mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Apply suggestions from @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
faa142c78d
commit
cfd6baf5ad
1 changed files with 1 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue