From c1802875620b21ec5c37ddf7c865e7a175481bb8 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Wed, 30 Sep 2015 23:14:08 -0400 Subject: [PATCH] Fixed bug in Python API Chi.get_xs(...) when summed across nuclides --- openmc/mgxs/mgxs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openmc/mgxs/mgxs.py b/openmc/mgxs/mgxs.py index e02a39849a..07e47e0cf6 100644 --- a/openmc/mgxs/mgxs.py +++ b/openmc/mgxs/mgxs.py @@ -1869,6 +1869,7 @@ class Chi(MultiGroupXS): new_shape = (num_subdomains * num_groups,) + new_shape[2:] xs = np.reshape(xs, new_shape) + xs = np.nan_to_num(xs) return xs def get_pandas_dataframe(self, groups='all', nuclides='all',