From 4655aecde69a22f828c598065ecf3c259096c3f3 Mon Sep 17 00:00:00 2001 From: Sam Shaner Date: Wed, 26 Apr 2017 12:58:27 -0400 Subject: [PATCH] removed additional unnecessary modifications --- openmc/tallies.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/openmc/tallies.py b/openmc/tallies.py index 59f9012cd5..e0283571c9 100644 --- a/openmc/tallies.py +++ b/openmc/tallies.py @@ -2062,8 +2062,7 @@ class Tally(object): # the tensor product across scores. if score_product == 'tensor': self._mean = np.repeat(self.mean, other.num_scores, axis=2) - self._std_dev = np.repeat(self.std_dev, other.num_scores, - axis=2) + self._std_dev = np.repeat(self.std_dev, other.num_scores, axis=2) other._mean = np.tile(other.mean, (1, 1, self.num_scores)) other._std_dev = np.tile(other.std_dev, (1, 1, self.num_scores)) @@ -2080,12 +2079,8 @@ class Tally(object): # Add scores present in self but not in other to other for score in other_missing_scores: - other._mean = \ - np.insert(other.mean, other.num_scores, 0, - axis=2) - other._std_dev = \ - np.insert(other.std_dev, other.num_scores, 0, - axis=2) + other._mean = np.insert(other.mean, other.num_scores, 0, axis=2) + other._std_dev = np.insert(other.std_dev, other.num_scores, 0, axis=2) other.scores.append(score) # Add scores present in other but not in self to self