Skip to content

Commit 343202e

Browse files
committed
Merge branch 'develop' of https://github.com/MiraGeoscience/geoapps into develop
2 parents 40669b9 + 6ac5ef7 commit 343202e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
- id: pycln
1818
args: [--config=pyproject.toml]
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.9.1
20+
rev: v0.9.9
2121
hooks:
2222
- id: ruff
2323
args:
@@ -61,7 +61,7 @@ repos:
6161
types: [python]
6262
exclude: ^(devtools|docs)/
6363
- repo: https://github.com/codespell-project/codespell
64-
rev: v2.3.0
64+
rev: v2.4.1
6565
hooks:
6666
- id: codespell
6767
exclude: (-lock\.ya?ml|\benvironments/.*\.ya?ml|\.ipynb|^THIRD_PARTY_SOFTWARE\.rst)$

geoapps/triangulated_surfaces/application.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def trigger_click(self, _):
238238
delaunay_2d.points[ # pylint: disable=unsupported-assignment-operation
239239
:, 1
240240
] = np.ravel(z_locations)
241-
indx = np.ones(delaunay_2d.simplices.shape[0], dtype=bool)
241+
index = np.ones(delaunay_2d.simplices.shape[0], dtype=bool)
242242
for i in range(3):
243243
length = np.linalg.norm(
244244
delaunay_2d.points[ # pylint: disable=unsubscriptable-object
@@ -249,10 +249,10 @@ def trigger_click(self, _):
249249
],
250250
axis=1,
251251
)
252-
indx *= length < self.max_distance.value
252+
index *= length < self.max_distance.value
253253

254254
# Remove the simplices too long
255-
delaunay_2d.simplices = delaunay_2d.simplices[indx, :]
255+
delaunay_2d.simplices = delaunay_2d.simplices[index, :]
256256
model_vertices.append(
257257
np.c_[
258258
np.ravel(x_locations),
@@ -285,7 +285,7 @@ def trigger_click(self, _):
285285

286286
delaunay_2d = Delaunay(locations[:, :2])
287287

288-
indx = np.ones(delaunay_2d.simplices.shape[0], dtype=bool)
288+
index = np.ones(delaunay_2d.simplices.shape[0], dtype=bool)
289289
for i in range(3):
290290
length = np.linalg.norm(
291291
delaunay_2d.points[ # pylint: disable=unsubscriptable-object
@@ -296,10 +296,10 @@ def trigger_click(self, _):
296296
],
297297
axis=1,
298298
)
299-
indx *= length < self.max_distance.value
299+
index *= length < self.max_distance.value
300300

301301
# Remove the simplices too long
302-
delaunay_2d.simplices = delaunay_2d.simplices[indx, :]
302+
delaunay_2d.simplices = delaunay_2d.simplices[index, :]
303303

304304
model_vertices = np.c_[delaunay_2d.points, locations[:, 2]]
305305
model_cells = delaunay_2d.simplices

0 commit comments

Comments
 (0)