mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
fixed cv.check_type origin
This commit is contained in:
parent
9ecaafad7e
commit
b0743dfdea
1 changed files with 2 additions and 2 deletions
|
|
@ -1096,7 +1096,7 @@ class CylindricalMesh(StructuredMesh):
|
|||
|
||||
@origin.setter
|
||||
def origin(self, coords):
|
||||
cv.check_type('mesh r_grid', coords, Iterable, Real)
|
||||
cv.check_type('mesh origin', coords, Iterable, Real)
|
||||
self._origin = np.asarray(coords)
|
||||
|
||||
@r_grid.setter
|
||||
|
|
@ -1418,7 +1418,7 @@ class SphericalMesh(StructuredMesh):
|
|||
|
||||
@origin.setter
|
||||
def origin(self, coords):
|
||||
cv.check_type('mesh r_grid', coords, Iterable, Real)
|
||||
cv.check_type('mesh origin', coords, Iterable, Real)
|
||||
self._origin = np.asarray(coords)
|
||||
|
||||
@r_grid.setter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue