From 97ea3287c2ff2fddce065717ee23616f826cf037 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 25 Jun 2019 09:47:26 -0500 Subject: [PATCH] Only replace incoherent elastic in ThermalScattering.from_njoy with ENDF data --- openmc/data/thermal.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openmc/data/thermal.py b/openmc/data/thermal.py index 3a4713097..79cad3282 100644 --- a/openmc/data/thermal.py +++ b/openmc/data/thermal.py @@ -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