mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
formatting fixes
This commit is contained in:
parent
294f57318d
commit
8e1880b01c
2 changed files with 10 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
repr(s)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue