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)$ 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