We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38f3042 commit 695311fCopy full SHA for 695311f
1 file changed
simpeg_drivers/utils/utils.py
@@ -49,11 +49,11 @@
49
50
def mask_vertices_and_cells(
51
extent: np.ndarray, vertices: np.ndarray, cells: np.ndarray | None
52
-) -> tuple[np.ndarray, np.ndarray]:
+) -> tuple[np.ndarray, np.ndarray] | tuple[np.ndarray, None]:
53
"""
54
Mask vertices and remove cells whose vertices are all outside the extent.
55
56
- :param extent: Array-like object of [[xmin, ymin], [xmax, ymax]].
+ :param extent: Array of shape (2, 3) containing the lower SW and upper NE coordinates.
57
:param vertices: Array of shape (n_vertices, 3) containing the x, y, z coordinates.
58
:param cells: Array of shape (n_cells, 3) containing the indices of the vertices
59
that make up each cell.
0 commit comments