From ee8b2d5830cfd5eb9f8af6406b357d20b1a8dc97 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 17:52:51 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.1 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.1...v0.9.4) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e247202da..7ed5b45cb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: @@ -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)$ From 4054d85bd35dca18a956819b656b4f75d90e7190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hensgen?= Date: Fri, 28 Feb 2025 18:27:56 -0500 Subject: [PATCH 2/2] fix variable name (codespell) --- geoapps/triangulated_surfaces/application.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/geoapps/triangulated_surfaces/application.py b/geoapps/triangulated_surfaces/application.py index 6c9a2d85e..461ba7bd7 100644 --- a/geoapps/triangulated_surfaces/application.py +++ b/geoapps/triangulated_surfaces/application.py @@ -247,7 +247,7 @@ def trigger_click(self, _): 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 @@ -258,10 +258,10 @@ def trigger_click(self, _): ], 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), @@ -294,7 +294,7 @@ def trigger_click(self, _): 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) for i in range(3): length = np.linalg.norm( delaunay_2d.points[ # pylint: disable=unsubscriptable-object @@ -305,10 +305,10 @@ def trigger_click(self, _): ], 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 = np.c_[delaunay_2d.points, locations[:, 2]] model_cells = delaunay_2d.simplices