From 25dd3023e9084159b0c424b467d2ef8ff8cf8ab5 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Fri, 13 Sep 2024 16:28:50 -0500 Subject: [PATCH] Allow estimator to be set to None --- openmc/tallies.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmc/tallies.py b/openmc/tallies.py index 55f920b872b..4ea713092f3 100644 --- a/openmc/tallies.py +++ b/openmc/tallies.py @@ -2403,7 +2403,8 @@ def __truediv__(self, other): new_tally.name = self.name new_tally._mean = self.mean / other new_tally._std_dev = self.std_dev * np.abs(1. / other) - new_tally.estimator = self.estimator + if self.estimator is not None: + new_tally.estimator = self.estimator new_tally.with_summary = self.with_summary new_tally.num_realizations = self.num_realizations