From 90c70f910ad55512f2bbcf9b24e7c0bb59cf60cd Mon Sep 17 00:00:00 2001 From: liangjg Date: Wed, 20 Mar 2019 21:47:14 -0400 Subject: [PATCH] first result looks good --- openmc/data/photon.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openmc/data/photon.py b/openmc/data/photon.py index 73c48527d..f8400b736 100644 --- a/openmc/data/photon.py +++ b/openmc/data/photon.py @@ -1174,8 +1174,7 @@ class PhotonReaction(EqualityMixin): ff.y *= ff.y/Z**2 int_ff = Tabulated1D(ff.x, ff.integral()) int_ff.to_hdf5(group, 'integrated_scattering_factor') - else: - self.scattering_factor.to_hdf5(group, 'scattering_factor') + self.scattering_factor.to_hdf5(group, 'scattering_factor') if self.anomalous_real is not None: self.anomalous_real.to_hdf5(group, 'anomalous_real') if self.anomalous_imag is not None: