Fixed filter indexing issue in Tally.get_values(...) introduced in #426

This commit is contained in:
Will Boyd 2015-08-10 19:10:01 -07:00
parent c982eb72ba
commit 788e03b208

View file

@ -914,7 +914,8 @@ class Tally(object):
filter_indices[i][j] = filter_index
# Account for stride in each of the previous filters
filter_indices[:i] *= filter.num_bins
for indices in filter_indices[:i]:
indices *= filter.num_bins
# Apply outer product sum between all filter bin indices
filter_indices = list(map(sum, itertools.product(*filter_indices)))