From 249c3618d45210840e4cd7c7dd20d3553c1703be Mon Sep 17 00:00:00 2001 From: valeriogiusti <77335624+valeriogiusti@users.noreply.github.com> Date: Fri, 17 Dec 2021 17:19:02 +0100 Subject: [PATCH] Update funcs.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This modification will eliminate the warning: /home/valerio/.local/lib/python3.8/site-packages/openmc/surface.py:1510: FutureWarning: "ZCylinder(…) accepts an argument named ‘r’, not ‘R’. Future versions of OpenMC will not accept the capitalized version. warn(_WARNING_UPPER.format(type(self).name, ‘r’, ‘R’) --- openmc/model/funcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/model/funcs.py b/openmc/model/funcs.py index 53f3a4b2ab..41cede08e0 100644 --- a/openmc/model/funcs.py +++ b/openmc/model/funcs.py @@ -186,7 +186,7 @@ def rectangular_prism(width, height, axis='z', origin=(0., 0.), raise ValueError('Periodic boundary conditions not permitted when ' 'rounded corners are used.') - args = {'R': corner_radius, 'boundary_type': boundary_type} + args = {'r': corner_radius, 'boundary_type': boundary_type} args[x1 + '0'] = origin[0] - width/2 + corner_radius args[x2 + '0'] = origin[1] - height/2 + corner_radius