From da4de9c4df7216a776849dd581429a95f01e4a28 Mon Sep 17 00:00:00 2001 From: Adam Nelson Date: Tue, 23 Feb 2016 20:43:47 -0500 Subject: [PATCH] Now check nu_fission data in mgxs_library python api when determining if dataset is fissionable or not. --- openmc/mgxs_library.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openmc/mgxs_library.py b/openmc/mgxs_library.py index b6dd9f09fe..06b369c68a 100644 --- a/openmc/mgxs_library.py +++ b/openmc/mgxs_library.py @@ -487,6 +487,8 @@ class XSdata(object): # check we have a numpy list check_type("nu_fission", nu_fission, np.ndarray, expected_iter_type=Real) self._nu_fission = np.copy(nu_fission) + if np.sum(self._nu_fission) > 0.0: + self._fissionable = True def _get_xsdata_xml(self): element = ET.Element("xsdata")