Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: pycln
args: [--config=pyproject.toml]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1
rev: v0.9.4
hooks:
- id: ruff
args:
Expand Down Expand Up @@ -61,7 +61,7 @@ repos:
types: [python]
exclude: ^(devtools|docs)/
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
exclude: (-lock\.ya?ml|\benvironments/.*\.ya?ml|\.ipynb|^THIRD_PARTY_SOFTWARE\.rst)$
Expand Down
12 changes: 6 additions & 6 deletions geoapps/triangulated_surfaces/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
delaunay_2d.points[ # pylint: disable=unsupported-assignment-operation
:, 1
] = np.ravel(z_locations)
indx = np.ones(delaunay_2d.simplices.shape[0], dtype=bool)
index = np.ones(delaunay_2d.simplices.shape[0], dtype=bool)
for i in range(3):
length = np.linalg.norm(
delaunay_2d.points[ # pylint: disable=unsubscriptable-object
Expand All @@ -258,10 +258,10 @@
],
axis=1,
)
indx *= length < self.max_distance.value
index *= length < self.max_distance.value

# Remove the simplices too long
delaunay_2d.simplices = delaunay_2d.simplices[indx, :]
delaunay_2d.simplices = delaunay_2d.simplices[index, :]
model_vertices.append(
np.c_[
np.ravel(x_locations),
Expand Down Expand Up @@ -294,7 +294,7 @@

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

indx = np.ones(delaunay_2d.simplices.shape[0], dtype=bool)
index = np.ones(delaunay_2d.simplices.shape[0], dtype=bool)

Check warning on line 297 in geoapps/triangulated_surfaces/application.py

View check run for this annotation

Codecov / codecov/patch

geoapps/triangulated_surfaces/application.py#L297

Added line #L297 was not covered by tests
for i in range(3):
length = np.linalg.norm(
delaunay_2d.points[ # pylint: disable=unsubscriptable-object
Expand All @@ -305,10 +305,10 @@
],
axis=1,
)
indx *= length < self.max_distance.value
index *= length < self.max_distance.value

Check warning on line 308 in geoapps/triangulated_surfaces/application.py

View check run for this annotation

Codecov / codecov/patch

geoapps/triangulated_surfaces/application.py#L308

Added line #L308 was not covered by tests

# Remove the simplices too long
delaunay_2d.simplices = delaunay_2d.simplices[indx, :]
delaunay_2d.simplices = delaunay_2d.simplices[index, :]

Check warning on line 311 in geoapps/triangulated_surfaces/application.py

View check run for this annotation

Codecov / codecov/patch

geoapps/triangulated_surfaces/application.py#L311

Added line #L311 was not covered by tests

model_vertices = np.c_[delaunay_2d.points, locations[:, 2]]
model_cells = delaunay_2d.simplices
Expand Down
Loading