Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Shriwise <[email protected]>
  • Loading branch information
eepeterson and pshriwise authored Nov 27, 2022
1 parent 5a716f1 commit 3794673
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openmc/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ def vertices(self):
-------
vertices : numpy.ndarray
Returns a numpy.ndarray representing the coordinates of the mesh
vertices with a shape equal to (ndim, dim1 + 1, ..., dimn + 1).
vertices with a shape equal to (ndim, dim1 + 1, ..., dimn + 1). Can be
unpacked along the first dimension with xx, yy, zz = mesh.vertices.
"""
return np.stack(np.meshgrid(*self._grids, indexing='ij'), axis=0)
Expand All @@ -186,7 +187,8 @@ def centroids(self):
centroids : numpy.ndarray
Returns a numpy.ndarray representing the mesh element centroid
coordinates with a shape equal to (ndim, dim1, ..., dimn). Can be
unpacked by the first dimension with xx, yy, zz = mesh.centroids
unpacked along the first dimension with xx, yy, zz = mesh.centroids.
"""
ndim = self.n_dimension
Expand Down

0 comments on commit 3794673

Please sign in to comment.