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',