From cc8f1f3e6bd84e078b50b185f55d3786adb2318a Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Mon, 28 Feb 2022 14:10:04 -0600 Subject: [PATCH] Apply suggestions from @paulromano Co-authored-by: Paul Romano --- openmc/mesh.py | 6 +++--- tests/regression_tests/filter_mesh/test.py | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/openmc/mesh.py b/openmc/mesh.py index 0de73bbe96..2556e4510b 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -215,7 +215,7 @@ class RegularMesh(MeshBase): Returns ------- - volumes : Iterable of float + volumes : numpy.ndarray Volumes """ @@ -604,7 +604,7 @@ class RectilinearMesh(MeshBase): Returns ------- - volumes : Iterable of float + volumes : numpy.ndarray Volumes """ @@ -1202,7 +1202,7 @@ class UnstructuredMesh(MeshBase): Returns ------- - volumes : Iterable of float + volumes : numpy.ndarray Volumes """ diff --git a/tests/regression_tests/filter_mesh/test.py b/tests/regression_tests/filter_mesh/test.py index e949c1a4c4..b047dd252e 100644 --- a/tests/regression_tests/filter_mesh/test.py +++ b/tests/regression_tests/filter_mesh/test.py @@ -50,7 +50,6 @@ def model(): reg_mesh_exp_vols = np.full(mesh_3d.dimension, dx*dy*dz) np.testing.assert_equal(mesh_3d.volumes, reg_mesh_exp_vols) - recti_mesh = openmc.RectilinearMesh() recti_mesh.x_grid = np.linspace(-7.5, 7.5, 18) recti_mesh.y_grid = np.linspace(-7.5, 7.5, 18) @@ -73,7 +72,6 @@ def model(): cyl_mesh_exp_vols = np.multiply.outer(drdp, dz) np.testing.assert_allclose(cyl_mesh.volumes, cyl_mesh_exp_vols) - sph_mesh = openmc.SphericalMesh() sph_mesh.r_grid = np.linspace(0, 7.5, 18) sph_mesh.theta_grid = np.linspace(0, pi, 9) @@ -85,7 +83,6 @@ def model(): sph_mesh_exp_vols = np.multiply.outer(drdt, dp) np.testing.assert_allclose(sph_mesh.volumes, sph_mesh_exp_vols) - # Create filters reg_filters = [ openmc.MeshFilter(mesh_1d),