mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Fixed bug in Python API Chi.get_xs(...) when summed across nuclides
This commit is contained in:
parent
a342a6c20a
commit
c180287562
1 changed files with 1 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue