mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Simplify infinity check (#2587)
This commit is contained in:
parent
382bcb2e8e
commit
21d88473c8
1 changed files with 1 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ class Universe(UniverseBase):
|
|||
|
||||
bb = self.bounding_box
|
||||
# checks to see if bounding box contains -inf or inf values
|
||||
if np.isinf([bb[0][x], bb[1][x], bb[0][y], bb[1][y]]).any():
|
||||
if np.isinf(bb.extent[basis]).any():
|
||||
if origin is None:
|
||||
origin = (0, 0, 0)
|
||||
if width is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue