Skip to content

Commit

Permalink
Simplify infinity check (#2587)
Browse files Browse the repository at this point in the history
  • Loading branch information
caderache2014 committed Jul 5, 2023
1 parent 382bcb2 commit 21d8847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmc/universe.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def plot(self, origin=None, width=None, pixels=40000,

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:
Expand Down

0 comments on commit 21d8847

Please sign in to comment.