mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-24 20:15:26 -04:00
19 lines
503 B
Python
19 lines
503 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_halton_samples():
|
|
model = random_ray_lattice()
|
|
model.settings.random_ray['sample_method'] = 'halton'
|
|
harness = MGXSTestHarness('statepoint.10.h5', model)
|
|
harness.main()
|