diff --git a/openmc/model/surface_composite.py b/openmc/model/surface_composite.py index 70cdb33e1a..e1696edceb 100644 --- a/openmc/model/surface_composite.py +++ b/openmc/model/surface_composite.py @@ -58,10 +58,10 @@ class CylinderSector(CompositeSurface): This class acts as a proper surface, meaning that unary `+` and `-` operators applied to it will produce a half-space. The negative side is defined to be the region inside of the cylinder sector. - + Parameters ---------- - center : iterable of float + center : iterable of float Coordinate for central axes of cylinders in the (y, z), (z, x), or (x, y) basis. Defaults to (0,0) r1 : float @@ -136,8 +136,8 @@ class CylinderSector(CompositeSurface): def __pos__(self): return +self.outer_cyl | -self.inner_cyl | +self.plane0 | -self.plane1 - - + + class IsogonalOctagon(CompositeSurface): """Infinite isogonal octagon composite surface @@ -155,7 +155,6 @@ class IsogonalOctagon(CompositeSurface): Parameters ---------- center : iterable of float - Coordinate for the central axis of the octagon in the (y, z), (z, x), or (x, y) basis. r1 : float diff --git a/tests/unit_tests/test_surface_composite.py b/tests/unit_tests/test_surface_composite.py index f7dbeca4ef..6b9b6c7a53 100644 --- a/tests/unit_tests/test_surface_composite.py +++ b/tests/unit_tests/test_surface_composite.py @@ -171,7 +171,7 @@ def test_cylinder_sector(axis, indices): assert isinstance(s.inner_cyl, getattr(openmc, axis + "Cylinder")) assert isinstance(s.plane0, openmc.Plane) assert isinstance(s.plane1, openmc.Plane) - + # Make sure boundary condition propagates s.boundary_type = 'reflective' assert s.boundary_type == 'reflective' @@ -179,7 +179,7 @@ def test_cylinder_sector(axis, indices): assert s.inner_cyl.boundary_type == 'reflective' assert s.plane0.boundary_type == 'reflective' assert s.plane1.boundary_type == 'reflective' - + # Check bounding box ll, ur = (+s).bounding_box assert np.all(np.isinf(ll)) @@ -237,7 +237,7 @@ def test_isogonal_octagon(axis, plane_tb, plane_lr, axis_idx): assert isinstance(s.lower_right, openmc.Plane) assert isinstance(s.upper_left, openmc.Plane) assert isinstance(s.lower_left, openmc.Plane) - + # Make sure boundary condition propagates s.boundary_type = 'reflective' assert s.boundary_type == 'reflective' @@ -285,4 +285,6 @@ def test_isogonal_octagon(axis, plane_tb, plane_lr, axis_idx): openmc.model.IsogonalOctagon(center, r1=10., r2=1.) # Make sure repr works - repr(s) \ No newline at end of file + repr(s) + +