From e5e1daf23fcf0f332ac2e79542dff36424d863e0 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Thu, 9 Jun 2022 15:02:10 +0100 Subject: [PATCH] [skip ci] removed diagnostic prints --- openmc/data/data.py | 1 - openmc/material.py | 2 -- tests/unit_tests/test_material.py | 1 + 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/openmc/data/data.py b/openmc/data/data.py index 65702f7a5f..5aadfac870 100644 --- a/openmc/data/data.py +++ b/openmc/data/data.py @@ -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: diff --git a/openmc/material.py b/openmc/material.py index 9706ffe786..e49696706f 100644 --- a/openmc/material.py +++ b/openmc/material.py @@ -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 diff --git a/tests/unit_tests/test_material.py b/tests/unit_tests/test_material.py index baef3f9ef5..c5d3276a01 100644 --- a/tests/unit_tests/test_material.py +++ b/tests/unit_tests/test_material.py @@ -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 +