mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
9 lines
259 B
Python
9 lines
259 B
Python
import numpy as np
|
|
import pytest
|
|
|
|
|
|
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))
|