ENDF read error for JEDNL radioactive decay data
Created by: evan012345
Hi all, I came across a bug or issue reading ENDF files into the OpenMC radioactive decay class (openmc.data.Decay). To be fair, it has been working great for ENDF/B-VIII.0 and JEFF-3.3 ENDF formatted nuclear data, but crashes when reading JENDL data. I suspect that this might be an issue with the ENDF formatted data in JENDL rather than OpenMC, and could be somewhat related to this past issue.
Anyway... A number of JENDL-FPD-2011 isotope files are successfully read until it reaches Co-66 (027_Co_066.jfpd11). See error message below. If I remove Co-66, the code simply crashes at a different isotope, with the same error.
Is there a known hack or easy workaround? I really would like to read the JENDL data in OpenMC.
TypeError Traceback (most recent call last) in () 9 # open endf file using openmc 10 print(entry.path) ---> 11 endf_data = openmc.data.Decay(entry.path) 12 13 # get nuclide info
~/anaconda3/lib/python3.7/site-packages/openmc/data/decay.py in init(self, ev_or_filename) 427 di['positron_intensity'] = ufloat(*values[4:6]) 428 elif spectrum['type'] == 'gamma': --> 429 di['internal_pair'] = ufloat(*values[4:6]) 430 if len(values) >= 8: 431 di['total_internal_conversion'] = ufloat(*values[6:8])
TypeError: ufloat() missing 1 required positional argument: 'nominal_value'