From d0dde6f5a8dbc3d37ffe916224dd01d61e8cc7ae Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Fri, 7 Aug 2015 07:31:10 -0700 Subject: [PATCH] Changed reverse iteration of filter bins, indices to use reversed(...) --- openmc/tallies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/tallies.py b/openmc/tallies.py index 733d053721..fa41f5c7f8 100644 --- a/openmc/tallies.py +++ b/openmc/tallies.py @@ -2145,7 +2145,7 @@ class Tally(object): score_indices.append(score_index) # Loop over indices in reverse to remove excluded scores - for score_index in score_indices[::-1]: + for score_index in reversed(score_indices): new_tally.remove_score(self.scores[score_index]) new_tally.num_score_bins -= 1 @@ -2160,7 +2160,7 @@ class Tally(object): nuclide_indices.append(nuclide_index) # Loop over indices in reverse to remove excluded Nuclides - for nuclide_index in nuclide_indices[::-1]: + for nuclide_index in reversed(nuclide_indices): new_tally.remove_nuclide(self.nuclides[nuclide_index]) # FILTERS