mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
allowing plot types to be reaction strings
This commit is contained in:
parent
1c01fe751d
commit
e71e09884d
1 changed files with 6 additions and 0 deletions
|
|
@ -404,6 +404,12 @@ def _calculate_cexs_nuclide(this, types, temperature=294., sab_name=None,
|
|||
ops.append((np.add,) * (len(tmp_mts) - 2) + (np.multiply,))
|
||||
else:
|
||||
ops.append((np.add,) * (len(tmp_mts) - 1))
|
||||
if line in openmc.data.REACTION_NUMBER:
|
||||
openmc.data.REACTION_NUMBER[line]
|
||||
tmp_mts = nuc.get_reaction_components(line)
|
||||
mts.append(tmp_mts)
|
||||
ops.append((np.add,) * (len(tmp_mts) - 1))
|
||||
yields.append(False)
|
||||
else:
|
||||
# Not a built-in type, we have to parse it ourselves
|
||||
cv.check_type('MT in types', line, Integral)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue