From e71e09884d9a87d18725ac89c52ca752ade6da54 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Thu, 8 Oct 2020 17:28:52 +0100 Subject: [PATCH] allowing plot types to be reaction strings --- openmc/plotter.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openmc/plotter.py b/openmc/plotter.py index dfa6a13ba..28dfcdf88 100644 --- a/openmc/plotter.py +++ b/openmc/plotter.py @@ -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)