[skip ci] removed diagnostic prints

This commit is contained in:
Jonathan Shimwell 2022-06-09 15:02:10 +01:00 committed by GitHub
parent 1234e0b17c
commit e5e1daf23f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 3 deletions

View file

@ -295,7 +295,6 @@ def half_life(isotope):
"""
global _HALF_LIFE
if not _HALF_LIFE:
print('reading json file')
# Load data from AME2016 file
half_life_filename = os.path.join(os.path.dirname(__file__), 'half_life.json')
with open(half_life_filename, 'r') as f:

View file

@ -151,7 +151,6 @@ class Material(IDManagerMixin):
total_activity = 0
for key, value in atoms_per_barn_cm2.items():
half_life = openmc.data.half_life(key)
print('half_life', half_life)
if half_life:
atoms = value[1] * self.volume * 1e24
activity = math.log(2) * atoms / half_life
@ -723,7 +722,6 @@ class Material(IDManagerMixin):
def make_isotropic_in_lab(self):
self.isotropic = [x.name for x in self._nuclides]
def get_elements(self):
"""Returns all elements in the material

View file

@ -422,3 +422,4 @@ def test_activity_of_tritium():
m1.set_density('g/cm3', 1)
m1.volume = 1
assert pytest.approx(m1.activity) == 3.559778e14