Skip to content

Commit 5c502dd

Browse files
authored
Do not add radioactive Ta180 when calling add_element('Ta') (#3750)
1 parent 3e2f1f5 commit 5c502dd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

openmc/element.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,6 @@ def expand(self, percent, percent_type, enrichment=None,
184184
for nuclide in absent_nuclides:
185185
if nuclide in ['O17', 'O18'] and 'O16' in mutual_nuclides:
186186
abundances['O16'] += NATURAL_ABUNDANCE[nuclide]
187-
elif nuclide == 'Ta180_m1' and 'Ta180' in library_nuclides:
188-
abundances['Ta180'] = NATURAL_ABUNDANCE[nuclide]
189187
elif nuclide == 'Ta180_m1' and 'Ta181' in mutual_nuclides:
190188
abundances['Ta181'] += NATURAL_ABUNDANCE[nuclide]
191189
elif nuclide == 'W180' and 'W182' in mutual_nuclides:

tests/unit_tests/test_element.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ def test_expand_no_isotopes():
4545

4646

4747
def test_expand_ta():
48-
ref = {'Ta180': 0.01201, 'Ta181': 99.98799}
48+
ref = {'Ta181': 100.0}
4949
element = openmc.Element('Ta')
5050
for isotope in element.expand(100.0, 'ao'):
5151
assert isotope[1] == approx(ref[isotope[0]])
52-
52+
5353

5454
def test_expand_exceptions():
5555
""" Test that correct exceptions are raised for invalid input """

0 commit comments

Comments
 (0)