Start adding support for reading photon data from ACE files

This commit is contained in:
Paul Romano 2018-03-11 14:56:37 -05:00
parent 98d595d89e
commit 4dade28630
6 changed files with 241 additions and 88 deletions

View file

@ -248,8 +248,7 @@ def update_materials(root):
# If a nuclide name is in the ZAID notation (e.g., a number),
# convert it to the proper nuclide name.
if nucname.strip().isnumeric():
nucname = \
openmc.data.neutron._get_metadata(int(nucname))[0]
nucname = openmc.data.ace.get_metadata(int(nucname))[0]
nucname = nucname.replace('Nat', '0')
if nucname.endswith('m'):
nucname = nucname[:-1] + '_m1'