From fec7c049dfaa3c99bd657c55dd12e57ca34f1bcd Mon Sep 17 00:00:00 2001 From: Bryan Herman Date: Mon, 8 Apr 2013 08:31:43 -0400 Subject: [PATCH] replaced while loop with for loop construction --- src/utils/statepoint.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/statepoint.py b/src/utils/statepoint.py index f8dd76ada6..e91d474254 100644 --- a/src/utils/statepoint.py +++ b/src/utils/statepoint.py @@ -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) %