mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Merge pull request #1409 from gridley/develop
fix mesh plotter energy filter bins
This commit is contained in:
commit
ad33c5d236
1 changed files with 3 additions and 3 deletions
|
|
@ -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]
|
||||
|
||||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue