running plot test in tmp dir

This commit is contained in:
Jonathan Shimwell 2023-04-12 12:42:56 +01:00
parent eef21b65ca
commit a0d8d1961e
2 changed files with 1 additions and 2 deletions

View file

@ -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()

View file

@ -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])