From a0d8d1961e8954f80e37cf90e5b9712fe01505e1 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Wed, 12 Apr 2023 12:42:56 +0100 Subject: [PATCH] running plot test in tmp dir --- openmc/plots.py | 1 - tests/unit_tests/test_plots.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/openmc/plots.py b/openmc/plots.py index 573bc80eb6..6eedc93108 100644 --- a/openmc/plots.py +++ b/openmc/plots.py @@ -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() diff --git a/tests/unit_tests/test_plots.py b/tests/unit_tests/test_plots.py index b556be361e..15d158dd62 100644 --- a/tests/unit_tests/test_plots.py +++ b/tests/unit_tests/test_plots.py @@ -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])