mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
replaced while loop with for loop construction
This commit is contained in:
parent
8a784331c1
commit
fec7c049df
1 changed files with 1 additions and 2 deletions
|
|
@ -504,8 +504,7 @@ class StatePoint(object):
|
|||
filtmax[n_filters - idx] = tally.filters[akey].length
|
||||
|
||||
# compute bin info
|
||||
i = 0
|
||||
while i < n_filters:
|
||||
for i in range(n_filters):
|
||||
|
||||
# compute indices for filter combination
|
||||
filters[:,n_filters - i - 1] = np.floor((np.arange(n_bins) %
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue