Skip to content

Commit

Permalink
Property name swap for points in local mesh coordinates (#2732)
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise authored Oct 19, 2023
1 parent 7fe80e1 commit 55a682d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions openmc/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ def _grids(self):
@property
def vertices(self):
"""Return coordinates of mesh vertices in Cartesian coordinates. Also
see :meth:`CylindricalMesh.cylindrical_vertices` and
:meth:`SphericalMesh.spherical_vertices` for coordinates in other coordinate
see :meth:`CylindricalMesh.vertices_cylindrical` and
:meth:`SphericalMesh.vertices_spherical` for coordinates in other coordinate
systems.
Returns
Expand Down Expand Up @@ -1520,21 +1520,21 @@ def volumes(self):
@property
def vertices(self):
warnings.warn('Cartesian coordinates are returned from this property as of version 0.13.4')
return self._convert_to_cartesian(self.cylindrical_vertices, self.origin)
return self._convert_to_cartesian(self.vertices_cylindrical, self.origin)

@property
def cylindrical_vertices(self):
def vertices_cylindrical(self):
"""Returns vertices of the mesh in cylindrical coordinates.
"""
return super().vertices

@property
def centroids(self):
warnings.warn('Cartesian coordinates are returned from this property as of version 0.13.4')
return self._convert_to_cartesian(self.cylindrical_centroids, self.origin)
return self._convert_to_cartesian(self.centroids_cylindrical, self.origin)

@property
def cylindrical_centroids(self):
def centroids_cylindrical(self):
"""Returns centroids of the mesh in cylindrical coordinates.
"""
return super().centroids
Expand Down Expand Up @@ -1815,21 +1815,21 @@ def volumes(self):
@property
def vertices(self):
warnings.warn('Cartesian coordinates are returned from this property as of version 0.13.4')
return self._convert_to_cartesian(self.spherical_vertices, self.origin)
return self._convert_to_cartesian(self.vertices_spherical, self.origin)

@property
def spherical_vertices(self):
def vertices_spherical(self):
"""Returns vertices of the mesh in cylindrical coordinates.
"""
return super().vertices

@property
def centroids(self):
warnings.warn('Cartesian coordinates are returned from this property as of version 0.13.4')
return self._convert_to_cartesian(self.spherical_centroids, self.origin)
return self._convert_to_cartesian(self.centroids_spherical, self.origin)

@property
def spherical_centroids(self):
def centroids_spherical(self):
"""Returns centroids of the mesh in cylindrical coordinates.
"""
return super().centroids
Expand Down

0 comments on commit 55a682d

Please sign in to comment.