Skip to content

Commit fdfcc86

Browse files
committed
Merge branch 'GEOPY-2075' into GEOPY-2075_c
2 parents 0557fa2 + f63c829 commit fdfcc86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

simpeg_drivers/utils/regularization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def cell_adjacent(neighbors: list[np.ndarray]) -> list[np.ndarray]:
127127
"""Find all adjacent cells (corners) from cell neighbor array."""
128128

129129
dim = len(neighbors)
130-
max_index = np.max(neighbors)
130+
max_index = np.max(np.vstack(neighbors))
131131
corners = -1 * np.ones((dim, max_index + 1), dtype="int")
132132

133133
corners[0, neighbors[1][:, 0]] = neighbors[1][:, 1]

0 commit comments

Comments
 (0)