From 788e03b208fd170b690d0c78daaecdf2289c53a8 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Mon, 10 Aug 2015 19:10:01 -0700 Subject: [PATCH] Fixed filter indexing issue in Tally.get_values(...) introduced in #426 --- openmc/tallies.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmc/tallies.py b/openmc/tallies.py index fa41f5c7f8..4108b09321 100644 --- a/openmc/tallies.py +++ b/openmc/tallies.py @@ -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)))