mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-24 12:05:32 -04:00
16 lines
428 B
Python
16 lines
428 B
Python
import shutil
|
|
|
|
import numpy as np
|
|
import pytest
|
|
|
|
|
|
# Check if NJOY is available
|
|
needs_njoy = pytest.mark.skipif(shutil.which('njoy') is None,
|
|
reason="NJOY not installed")
|
|
|
|
|
|
def assert_unbounded(obj):
|
|
"""Assert that a region/cell is unbounded."""
|
|
ll, ur = obj.bounding_box
|
|
assert ll == pytest.approx((-np.inf, -np.inf, -np.inf))
|
|
assert ur == pytest.approx((np.inf, np.inf, np.inf))
|