Merge pull request #2226 from marquezj/fix_elastic_distribution

Fix elastic distribution
This commit is contained in:
Paul Romano 2022-09-26 12:35:11 -05:00 committed by GitHub
commit 1d140e348d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -730,10 +730,10 @@ class ThermalScattering(EqualityMixin):
if ace.nxs[5] == 3:
xs = incoherent_xs
dist = incoherent_dist
distribution = incoherent_dist
elif ace.nxs[5] == 4:
xs = coherent_xs
dist = coherent_dist
distribution = coherent_dist
else:
# Create mixed cross section -- note that coherent must come
# first due to assumption on C++ side