Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions openmc/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ def expand(self, percent, percent_type, enrichment=None,
for nuclide in absent_nuclides:
if nuclide in ['O17', 'O18'] and 'O16' in mutual_nuclides:
abundances['O16'] += NATURAL_ABUNDANCE[nuclide]
elif nuclide == 'Ta180_m1' and 'Ta180' in library_nuclides:
abundances['Ta180'] = NATURAL_ABUNDANCE[nuclide]
elif nuclide == 'Ta180_m1' and 'Ta181' in mutual_nuclides:
abundances['Ta181'] += NATURAL_ABUNDANCE[nuclide]
elif nuclide == 'W180' and 'W182' in mutual_nuclides:
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/test_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ def test_expand_no_isotopes():


def test_expand_ta():
ref = {'Ta180': 0.01201, 'Ta181': 99.98799}
ref = {'Ta181': 100.0}
element = openmc.Element('Ta')
for isotope in element.expand(100.0, 'ao'):
assert isotope[1] == approx(ref[isotope[0]])


def test_expand_exceptions():
""" Test that correct exceptions are raised for invalid input """
Expand Down
Loading