Only replace incoherent elastic in ThermalScattering.from_njoy with ENDF data

This commit is contained in:
Paul Romano 2019-06-25 09:47:26 -05:00
parent c2e612a503
commit 97ea3287c2

View file

@ -787,8 +787,9 @@ class ThermalScattering(EqualityMixin):
# Replace ACE data with ENDF data
rx, rx_endf = data.elastic, data_endf.elastic
for t in temperatures:
rx.xs[t] = rx_endf.xs[t]
rx.distribution[t] = rx_endf.distribution[t]
if isinstance(rx_endf.xs[t], IncoherentElastic):
rx.xs[t] = rx_endf.xs[t]
rx.distribution[t] = rx_endf.distribution[t]
return data