Merge pull request #1642 from paulromano/chain-neutron-fix

Small fix for depletion chain generation
This commit is contained in:
Andrew Johnson 2020-08-20 09:30:09 -04:00 committed by GitHub
commit baaae16bb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,9 +147,9 @@ def replace_missing(product, decay_data):
Z, A, state = openmc.data.zam(product)
symbol = openmc.data.ATOMIC_SYMBOL[Z]
# Replace neutron with proton
if Z == 0 and A == 1:
return 'H1'
# Replace neutron with nothing
if Z == 0:
return None
# First check if ground state is available
if state: