mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Goodbye openmc.Executor. Hello openmc.run and openmc.plot.
This commit is contained in:
parent
f622300b7f
commit
cccca4062a
4 changed files with 92 additions and 132 deletions
|
|
@ -9,7 +9,7 @@ from testing_harness import TestHarness
|
|||
|
||||
import h5py
|
||||
|
||||
from openmc import Executor
|
||||
import openmc
|
||||
|
||||
|
||||
class PlotTestHarness(TestHarness):
|
||||
|
|
@ -19,8 +19,7 @@ class PlotTestHarness(TestHarness):
|
|||
self._plot_names = plot_names
|
||||
|
||||
def _run_openmc(self):
|
||||
executor = Executor()
|
||||
returncode = executor.plot_geometry(openmc_exec=self._opts.exe)
|
||||
returncode = openmc.plot(openmc_exec=self._opts.exe)
|
||||
assert returncode == 0, 'OpenMC did not exit successfully.'
|
||||
|
||||
def _test_output_created(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue