Error in chain_file generation from_endf

Hi Paul and everyone,

I am not very good on english, but i will try my best to explain the situation.
I am working with the OpenMC v0.13.3 for a while and now im trying to make a chain_file from the JEFF-3.1 ENDF files. For this i have splitted up the FPY and Decay files according to ENDF-B-VII.1. Running my code with “ENDF-B-VII.1” files works just fine (no errors or warnings), but when i try to run it with the JEFF-3.1 files it gets this error:

"Processing neutron sub-library files…
Processing decay sub-library files…
/home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘beta-’] of parent I134_m1 has a zero branching ratio.

  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘ec/beta+’] of parent Sn108 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘beta-’] of parent Sn132 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘ec/beta+’] of parent Hf172 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘ec/beta+’] of parent Sn106 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘ec/beta+’] of parent Bi202 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘ec/beta+’] of parent Pd96 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘beta-’] of parent In123_m1 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘beta-’] of parent In130_m1 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘ec/beta+’] of parent Cs127 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘alpha’] of parent Rn197_m1 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘beta-’] of parent Se84 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘ec/beta+’] of parent La133 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘beta-’] of parent Cu73 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘ec/beta+’] of parent Fe52 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘ec/beta+’] of parent Mo91_m1 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘ec/beta+’] of parent La135 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘beta-’] of parent Y90_m1 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘ec/beta+’] of parent Ru94 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘beta-’] of parent Sn128 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    /home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/data/decay.py:270: UserWarning: Decay mode [‘beta-’] of parent Sn126 has a zero branching ratio.
  • warn(‘Decay mode {} of parent {} has a zero branching ratio.’*
    Processing fission product yield sub-library files…
    Creating depletion_chain…
    missing Be14 beta- B14
    missing Co68 beta- Ni68
    missing Co68_m1 beta- Ni68
    missing Co69 beta-,n Ni68
    missing As80 beta- Se80
    missing Br80 ec/beta+ Se80
    missing Kr72 ec/beta+ Br72_m1
    missing Kr73 ec/beta+ Br73
    missing Kr90 beta- Rb90
    missing Kr94 beta- Rb94
    missing Kr95 beta-,n Rb94
    missing Rb90_m1 IT Rb90
    missing Rb93 beta- Sr93
    missing Rb95 beta- Sr95
    missing Rb96 beta-,n Sr95
    missing Y100 beta- Zr100
    missing Y100_m1 beta- Zr100
    missing Nb104 beta- Mo104
    missing Nb104_m1 beta- Mo104
    missing Nb105 beta-,n Mo104
    missing Ru111 beta- Rh111
    missing Pd116 beta- Ag116
    missing Ag108 beta- Cd108
    missing Ag116_m1 IT Ag116
    missing In108 ec/beta+ Cd108
    missing In108_m1 ec/beta+ Cd108
    missing Sn126 beta- Sb126_m2
    missing Sn127 beta- Sb127
    missing Sn127_m1 beta- Sb127
    missing Sb122 beta- Te122
    missing Te139 beta- I139
    missing I121 ec/beta+ Te121_m1
    missing I122 ec/beta+ Te122
    missing La146 beta- Ce146
    missing La146_m1 beta- Ce146
    missing Ho164_m1 IT Ho164
    missing Er160 ec/beta+ Ho160_m1
    missing Er163 ec/beta+ Ho163_m1
    missing Re177 ec/beta+ W177
    missing Os192_m1 beta- Ir192_m2
    missing Os193 beta- Ir193
    missing Ir181 ec/beta+ Os181
    missing Ir193_m1 IT Ir193
    missing Pt193 ec/beta+ Ir193
    missing Pt200 beta- Au200
    missing Au193_m1 IT Au193
    missing Au200_m1 IT Au200
    missing Hg193 ec/beta+ Au193
    missing Hg193_m1 ec/beta+ Au193
    missing Tl191 ec/beta+ Hg191
    missing Pb213 beta- Bi213
    missing Bi201 ec/beta+ Pb201_m1
    missing Bi201_m1 ec/beta+ Pb201_m1
    missing Bi211 beta- Po211
    missing Bi215 beta- Po215
    missing Bi215_m1 beta- Po215
    missing Bi217 beta- Po217
    missing At211 ec/beta+ Po211
    missing At217 alpha Bi213
    missing At221 beta- Rn221
    missing At223 beta- Rn223
    missing Rn215 alpha Po211
    missing Rn217 alpha Po213
    missing Fr223 alpha At219
    missing Fr225 beta- Ra225
    missing Ra223 alpha Rn219
    Traceback (most recent call last):
  • File “/home/jefferson/mestrado/SEALER/MonteCarloCode/OpenMC/UO2/burnup/chain_jeff/create_chain.py”, line 37, in *
  • chain = openmc.deplete.Chain.from_endf(decay_files,fpy_files,neutron_files,progress=True)*
  •        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*
    
  • File “/home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/deplete/chain.py”, line 411, in from_endf*
  • target = replace_missing(mode.daughter, decay_data)*
  •         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*
    
  • File “/home/jefferson/.conda/envs/openmc-env/lib/python3.11/site-packages/openmc/deplete/chain.py”, line 189, in replace_missing*
  • product = ‘{}{}’.format(openmc.data.ATOMIC_SYMBOL[Z], A)*
  •                        ~~~~~~~~~~~~~~~~~~~~~~~~~^^^*
    

KeyError: -1"

I tried to make the individual files of FPY and Decay data as close as it gets to ENDF-VII data. And here is my code:

"import openmc

import openmc.deplete

import glob

#*********************************************************

# Generation of Depletion Chain

#*********************************************************

# Load ENDF sub-libraies: decay, fission product yield & neutrons

*decay_files = glob.glob('…/chain_jeff/JEFFRDD/ASC’)

*fpy_files = glob.glob('…/chain_jeff/JEFFNFY/ASC’)

*neutron_files = glob.glob('…/chain_jeff/JEFFN/ASC’)

# Generate depletion chain

chain = openmc.deplete.Chain.from_endf(decay_files,fpy_files,neutron_files,progress=True)

chain.export_to_xml(‘chain_jeff31.xml’)

print(‘Done’)"

Any ideas of what can be going wrong? And thanks for reading it all.