Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Nov 12, 2024
1 parent cdb1f1c commit 8324b9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ jobs:
python3 -m ruff format --check bempp_cl
python3 -m ruff format --check test
python3 -m ruff format --check examples
name: Run flake8 checks
- run: python3 -m pydocstyle bempp_cl/api
name: Run pydocstyle checks
name: Run ruff checks
build-and-test:
name: Build Bempp and run tests
Expand Down
12 changes: 6 additions & 6 deletions bempp_cl/api/fmm/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ def numba_evaluate_local_interactions(
local_source_points = _np.empty((3, npoints * nneighbors), dtype=dtype)
for source_element_index in range(nneighbors):
source_element = source_elements[source_element_index]
local_source_points[
:, npoints * source_element_index : npoints * (1 + source_element_index)
] = global_points[source_element, :, :]
local_source_points[:, npoints * source_element_index : npoints * (1 + source_element_index)] = (
global_points[source_element, :, :]
)
local_target_points = global_points[target_element, :, :]
interactions = kernel_function(
local_target_points,
Expand Down Expand Up @@ -316,9 +316,9 @@ def get_local_interaction_matrix_impl(grid_data, local_points, kernel_function,
local_source_points = _np.empty((3, npoints * nneighbors), dtype=dtype)
for source_element_index in range(nneighbors):
source_element = source_elements[source_element_index]
local_source_points[
:, npoints * source_element_index : npoints * (1 + source_element_index)
] = global_points[source_element, :, :]
local_source_points[:, npoints * source_element_index : npoints * (1 + source_element_index)] = (
global_points[source_element, :, :]
)
local_target_points = global_points[target_element, :, :]
interactions = kernel_function(
local_target_points,
Expand Down

0 comments on commit 8324b9e

Please sign in to comment.