Skip to content

Commit

Permalink
Apply suggestions from @paulromano code review
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
  • Loading branch information
yardasol and paulromano authored Jul 14, 2023
1 parent 2023006 commit 080e742
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
35 changes: 12 additions & 23 deletions openmc/model/surface_composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,34 +448,23 @@ def __init__(self, center_base, height, radius, axis='z', upper_fillet_radius=0.

axis_args = (axis, x1, x2, axcoord, axcoord1, axcoord2)
if upper_fillet_radius > 0.:
(upper_fillet_cylinder,
upper_fillet_torus,
upper_fillet_plane) = \
self._create_fillet_objects(axis_args,
height,
center_base,
radius,
upper_fillet_radius)
self.upper_fillet_cylinder = upper_fillet_cylinder
self.upper_fillet_torus = upper_fillet_torus
self.upper_fillet_plane = upper_fillet_plane
cylinder, torus, plane = self._create_fillet_objects(
axis_args, height, center_base, radius, upper_fillet_radius)
self.upper_fillet_cylinder = cylinder
self.upper_fillet_torus = torus
self.upper_fillet_plane = plane
self._surface_names += ('upper_fillet_cylinder',
'upper_fillet_torus',
'upper_fillet_plane')

if lower_fillet_radius > 0.:
(lower_fillet_cylinder,
lower_fillet_torus,
lower_fillet_plane) = \
self._create_fillet_objects(axis_args,
height,
center_base,
radius,
lower_fillet_radius,
pos='lower')
self.lower_fillet_cylinder = lower_fillet_cylinder
self.lower_fillet_torus = lower_fillet_torus
self.lower_fillet_plane = lower_fillet_plane
cylinder, torus, plane = self._create_fillet_objects(
axis_args, height, center_base, radius, lower_fillet_radius,
pos='lower'
)
self.lower_fillet_cylinder = cylinder
self.lower_fillet_torus = torus
self.lower_fillet_plane = plane

self._surface_names += ('lower_fillet_cylinder',
'lower_fillet_torus',
Expand Down
1 change: 0 additions & 1 deletion tests/unit_tests/test_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import numpy as np
import openmc
import openmc.lib
import pytest


Expand Down

0 comments on commit 080e742

Please sign in to comment.