Merge pull request #2232 from openmc-dev/yardasol-ace-to-hdf5-patch

Fix conversion of multiple thermal scattering data files from `ACE` to `HDF5` format.
This commit is contained in:
Paul Romano 2022-09-27 22:47:24 -05:00 committed by GitHub
commit c6a0381de7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,10 @@ def ace_to_hdf5(destination, xsdir, xsdata, libraries, metastable, libver):
# Add data for new temperature
try:
print(f"Converting {table.name} (ACE) to {data.name} (HDF5)")
data.add_temperature_from_ace(table, metastable)
if table.data_type == TableType.NEUTRON_CONTINUOUS:
data.add_temperature_from_ace(table, metastable)
else:
data.add_temperature_from_ace(table)
except Exception as e:
print(f"Failed to convert {table.name}: {e}")
continue