mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
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:
commit
c6a0381de7
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue