mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Updated openmc-plot-mesh-tally to include if-else for 2D vs. 3D meshes
This commit is contained in:
parent
cfd79626bc
commit
53edae4c7e
1 changed files with 5 additions and 1 deletions
|
|
@ -133,7 +133,11 @@ class MeshPlotter(tk.Frame):
|
|||
self.mesh = selectedTally.filters_by_name['mesh'].mesh
|
||||
|
||||
# Get mesh dimensions
|
||||
self.nx, self.ny, self.nz = self.mesh.dimension
|
||||
if len(self.mesh.dimension) == 2:
|
||||
self.nx, self.ny = self.mesh.dimension
|
||||
self.nz = 1
|
||||
else:
|
||||
self.nx, self.ny, self.nz = self.mesh.dimension
|
||||
|
||||
# Repopulate comboboxes baesd on current basis selection
|
||||
text = self.basisBox.get()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue