fusion-energy / openmc-dagmc-wrapper

A Python package that extends OpenMC base classes to provide convenience features and standardized tallies when simulating DAGMC geometry with OpenMC.
https://openmc-dagmc-wrapper.readthedocs.io/
MIT License
7 stars 2 forks source link

Check the processing of results with batches = 1 #72

Closed shimwell closed 2 years ago

shimwell commented 2 years ago

When running the following code I got the following error

  settings = odw.FusionSettings()
  settings.batches = 1
  settings.particles = 100
processing TBR
/opt/openmc/openmc/tallies.py:278: RuntimeWarning: invalid value encountered in true_divide
  self._std_dev[nonzero] = np.sqrt((self.sum_sq[nonzero]/n -
shimwell commented 2 years ago

this is now handled in the openmc-tally-unit-package