mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
running plot test in tmp dir
This commit is contained in:
parent
eef21b65ca
commit
a0d8d1961e
2 changed files with 1 additions and 2 deletions
|
|
@ -228,7 +228,6 @@ def _voxel_to_vtk(voxel_file: str, output: str = 'plot.vti'):
|
|||
|
||||
# transpose data from OpenMC ordering (zyx) to VTK ordering (xyz)
|
||||
# and flatten to 1-D array
|
||||
print("Reading and translating data...")
|
||||
h5data = fh["data"][...]
|
||||
|
||||
data = vtk.vtkIntArray()
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ def myprojectionplot():
|
|||
return plot
|
||||
|
||||
|
||||
def test_voxel_plot():
|
||||
def test_voxel_plot(run_in_tmpdir):
|
||||
surf1 = openmc.Sphere(r=500, boundary_type='vacuum')
|
||||
cell1 = openmc.Cell(region=-surf1)
|
||||
geometry = openmc.Geometry([cell1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue