mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Fix make_ace(_thermal) when descriptive data in MF=1,MT=451 is missing
This commit is contained in:
parent
2813eaddda
commit
319e64d8f3
1 changed files with 2 additions and 2 deletions
|
|
@ -339,7 +339,7 @@ def make_ace(filename, temperatures=None, acer=True, xsdir=None,
|
|||
|
||||
ev = evaluation if evaluation is not None else endf.Evaluation(filename)
|
||||
mat = ev.material
|
||||
zsymam = ev.target['zsymam']
|
||||
zsymam = ev.target.get('zsymam', 'Unknown')
|
||||
|
||||
# Determine name of library
|
||||
library = '{}-{}.{}'.format(*ev.info['library'])
|
||||
|
|
@ -499,7 +499,7 @@ def make_ace_thermal(filename, filename_thermal, temperatures=None,
|
|||
ev_thermal = (evaluation_thermal if evaluation_thermal is not None
|
||||
else endf.Evaluation(filename_thermal))
|
||||
mat_thermal = ev_thermal.material
|
||||
zsymam_thermal = ev_thermal.target['zsymam']
|
||||
zsymam_thermal = ev_thermal.target.get('zsymam', 'Unknown')
|
||||
|
||||
# Determine name, isotopes based on MAT number
|
||||
data = _get_thermal_data(ev_thermal, mat_thermal)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue