Hello! I am trying to use a bounding box to create slabs, but I’m having some issues as it doesn’t seem to be recognized. After going through some documentation, I’m also finding bounding boxes with different names (BoundingBox versus bounding_box). I’ve tried both and they output the same error. I’ve tried accessing the bounding_box attribute, and that seems to work, so I don’t know what the issue is. I’m currently on version 0.13.3, is there any way to get around this problem?
import openmc
sphere = openmc.Sphere(r=5.0)
cell = openmc.Cell(fill=None, region=-sphere)
lower_left, upper_right = cell.region.bounding_box
print(lower_left)
print(upper_right)
box = openmc.bounding_box(lower_left, upper_right)
Output:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[2], line 8
6 print(lower_left)
7 print(upper_right)
----> 8 box = openmc.bounding_box(lower_left, upper_right)
AttributeError: module 'openmc' has no attribute 'bounding_box'