review comments from @paulromano

This commit is contained in:
Jonathan Shimwell 2022-06-21 23:14:49 +00:00 committed by GitHub
parent 7bbc778fd7
commit 87dafd1e31
3 changed files with 5 additions and 3 deletions

View file

@ -63,6 +63,7 @@ Core Functions
atomic_weight
dose_coefficients
gnd_name
half_life
isotopes
linearize
thin

View file

@ -152,9 +152,10 @@ class Material(IDManagerMixin):
for key, value in atoms_per_barn_cm2.items():
half_life = openmc.data.half_life(key)
if half_life:
atoms = value[1] * self.volume * 1e24
activity = math.log(2) * atoms / half_life
atoms = value[1] * self.volume
activity = atoms / half_life
total_activity += activity
total_activity = math.log(2) * total_activity * 1e24
return total_activity

View file

@ -32,7 +32,7 @@ kwargs = {
# Data files and libraries
'package_data': {
'openmc.lib': ['libopenmc.{}'.format(suffix)],
'openmc.data': ['mass16.txt', 'BREMX.DAT', '*.h5'],
'openmc.data': ['mass16.txt', 'BREMX.DAT', 'half_life.json', '*.h5'],
'openmc.data.effective_dose': ['*.txt']
},