replaced while loop with for loop construction

This commit is contained in:
Bryan Herman 2013-04-08 08:31:43 -04:00
parent 8a784331c1
commit fec7c049df

View file

@ -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) %