mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Fix arguments to Tally.get_values(...) in openmc-plot-mesh-tally
This commit is contained in:
parent
af442677c0
commit
cfd79626bc
1 changed files with 4 additions and 4 deletions
|
|
@ -210,7 +210,7 @@ class MeshPlotter(tk.Frame):
|
|||
mesh_filter = f
|
||||
continue
|
||||
index = self.filterBoxes[f.type].current()
|
||||
spec_list.append((f, index))
|
||||
spec_list.append((f.type, (index,)))
|
||||
|
||||
text = self.basisBox.get()
|
||||
if text == 'xy':
|
||||
|
|
@ -229,11 +229,11 @@ class MeshPlotter(tk.Frame):
|
|||
else:
|
||||
meshtuple = (i + 1, axial_level, j + 1)
|
||||
filters, filter_bins = zip(*spec_list + [
|
||||
(mesh_filter, meshtuple)])
|
||||
(mesh_filter.type, (meshtuple,))])
|
||||
mean = selectedTally.get_values(
|
||||
self.scoreBox.get(), filters, filter_bins)
|
||||
[self.scoreBox.get()], filters, filter_bins)
|
||||
stdev = selectedTally.get_values(
|
||||
self.scoreBox.get(), filters, filter_bins,
|
||||
[self.scoreBox.get()], filters, filter_bins,
|
||||
value='std_dev')
|
||||
if mbvalue == 'Mean':
|
||||
matrix[i, j] = mean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue