Skip to content

Commit

Permalink
Merge pull request #1409 from gridley/develop
Browse files Browse the repository at this point in the history
fix mesh plotter energy filter bins
  • Loading branch information
pshriwise committed Nov 15, 2019
2 parents 33b5c6a + e5448bf commit ad33c5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/openmc-plot-mesh-tally
Expand Up @@ -176,8 +176,8 @@ class MeshPlotter(tk.Frame):

# Set combobox items
if filterType in ['Energy', 'Energyout']:
combobox['values'] = ['{0} to {1}'.format(*f.bins[i:i+2])
for i in range(len(f.bins) - 1)]
combobox['values'] = ['{} to {}'.format(*ebin)
for ebin in f.bins]
else:
combobox['values'] = [str(i) for i in f.bins]

Expand Down Expand Up @@ -210,7 +210,7 @@ class MeshPlotter(tk.Frame):
continue
elif f.short_name in ['Energy', 'Energyout']:
index = self.filterBoxes[f.short_name].current()
ebin = (f.bins[index], f.bins[index + 1])
ebin = f.bins[index]
spec_list.append((type(f), (ebin,)))
else:
index = self.filterBoxes[f.short_name].current()
Expand Down

0 comments on commit ad33c5d

Please sign in to comment.