OpenMC/tests/regression_tests/random_ray_k_eff/test.py
John Tramm 1b22dd28d4
Random Ray Testing Simplification (#3061)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-07-03 18:28:06 +00:00

19 lines
437 B
Python

import os
from openmc.examples import random_ray_lattice
from tests.testing_harness import TolerantPyAPITestHarness
class MGXSTestHarness(TolerantPyAPITestHarness):
def _cleanup(self):
super()._cleanup()
f = 'mgxs.h5'
if os.path.exists(f):
os.remove(f)
def test_random_ray_basic():
model = random_ray_lattice()
harness = MGXSTestHarness('statepoint.10.h5', model)
harness.main()