mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Now check nu_fission data in mgxs_library python api when determining if dataset is fissionable or not.
This commit is contained in:
parent
e9324fc32a
commit
da4de9c4df
1 changed files with 2 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue