Skip to content

Commit

Permalink
Explicitly allow setting tally estimator to None
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Sep 17, 2024
1 parent 6814629 commit eecc2a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openmc/tallies.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ def estimator(self):

@estimator.setter
def estimator(self, estimator):
if estimator is None:
self._estimator = None
cv.check_value('estimator', estimator, ESTIMATOR_TYPES)
self._estimator = estimator

Expand Down

0 comments on commit eecc2a1

Please sign in to comment.