Apply suggestions from @paulromano

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Patrick Shriwise 2022-02-28 14:10:04 -06:00 committed by GitHub
parent 8bced043f5
commit cc8f1f3e6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View file

@ -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
"""

View file

@ -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),