mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
[skip ci] removed diagnostic prints
This commit is contained in:
parent
1234e0b17c
commit
e5e1daf23f
3 changed files with 1 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue