mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Fixed filter indexing issue in Tally.get_values(...) introduced in #426
This commit is contained in:
parent
c982eb72ba
commit
788e03b208
1 changed files with 2 additions and 1 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue