@@ -76,10 +76,10 @@ def from_pymesh(cls, mesh: "pymesh.Mesh") -> "Mesh":
7676 Examples:
7777 >>> import ppsci
7878 >>> import pymesh
79- >>> import numpy as np
80- >>> box = pymesh.generate_box_mesh(np.array([0, 0, 0]), np.array([1, 1, 1]))
81- >>> mesh = ppsci.geometry.Mesh.from_pymesh(box)
82- >>> print(mesh.vertices)
79+ >>> import numpy as np # doctest: +SKIP
80+ >>> box = pymesh.generate_box_mesh(np.array([0, 0, 0]), np.array([1, 1, 1])) # doctest: +SKIP
81+ >>> mesh = ppsci.geometry.Mesh.from_pymesh(box) # doctest: +SKIP
82+ >>> print(mesh.vertices) # doctest: +SKIP
8383 [[0. 0. 0.]
8484 [1. 0. 0.]
8585 [1. 1. 0.]
@@ -203,9 +203,9 @@ def translate(self, translation: np.ndarray, relative: bool = True) -> "Mesh":
203203 >>> import ppsci
204204 >>> import pymesh
205205 >>> import numpy as np
206- >>> box = pymesh.generate_box_mesh(np.array([0, 0, 0]), np.array([1, 1, 1]))
207- >>> mesh = ppsci.geometry.Mesh(box)
208- >>> print(mesh.vertices)
206+ >>> box = pymesh.generate_box_mesh(np.array([0, 0, 0]), np.array([1, 1, 1])) # doctest: +SKIP
207+ >>> mesh = ppsci.geometry.Mesh(box) # doctest: +SKIP
208+ >>> print(mesh.vertices) # doctest: +SKIP
209209 [[0. 0. 0.]
210210 [1. 0. 0.]
211211 [1. 1. 0.]
@@ -214,7 +214,7 @@ def translate(self, translation: np.ndarray, relative: bool = True) -> "Mesh":
214214 [1. 0. 1.]
215215 [1. 1. 1.]
216216 [0. 1. 1.]]
217- >>> print(mesh.translate((-0.5, 0, 0.5), False).vertices) # the center is moved to the translation vector.
217+ >>> print(mesh.translate((-0.5, 0, 0.5), False).vertices) # the center is moved to the translation vector. # doctest: +SKIP
218218 [[-1. -0.5 0. ]
219219 [ 0. -0.5 0. ]
220220 [ 0. 0.5 0. ]
@@ -223,7 +223,7 @@ def translate(self, translation: np.ndarray, relative: bool = True) -> "Mesh":
223223 [ 0. -0.5 1. ]
224224 [ 0. 0.5 1. ]
225225 [-1. 0.5 1. ]]
226- >>> print(mesh.translate((-0.5, 0, 0.5), True).vertices) # the translation vector is directly added to the geometry coordinates
226+ >>> print(mesh.translate((-0.5, 0, 0.5), True).vertices) # the translation vector is directly added to the geometry coordinates # doctest: +SKIP
227227 [[-0.5 0. 0.5]
228228 [ 0.5 0. 0.5]
229229 [ 0.5 1. 0.5]
@@ -276,9 +276,9 @@ def scale(
276276 >>> import ppsci
277277 >>> import pymesh
278278 >>> import numpy as np
279- >>> box = pymesh.generate_box_mesh(np.array([0, 0, 0]), np.array([1, 1, 1]))
280- >>> mesh = ppsci.geometry.Mesh(box)
281- >>> print(mesh.vertices)
279+ >>> box = pymesh.generate_box_mesh(np.array([0, 0, 0]), np.array([1, 1, 1])) # doctest: +SKIP
280+ >>> mesh = ppsci.geometry.Mesh(box) # doctest: +SKIP
281+ >>> print(mesh.vertices) # doctest: +SKIP
282282 [[0. 0. 0.]
283283 [1. 0. 0.]
284284 [1. 1. 0.]
@@ -287,8 +287,8 @@ def scale(
287287 [1. 0. 1.]
288288 [1. 1. 1.]
289289 [0. 1. 1.]]
290- >>> mesh = mesh.scale(2, (0.25, 0.5, 0.75))
291- >>> print(mesh.vertices)
290+ >>> mesh = mesh.scale(2, (0.25, 0.5, 0.75)) # doctest: +SKIP
291+ >>> print(mesh.vertices) # doctest: +SKIP
292292 [[-0.25 -0.5 -0.75]
293293 [ 1.75 -0.5 -0.75]
294294 [ 1.75 1.5 -0.75]
0 commit comments