Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent 4b0dc50 commit 2dd2438
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/scifem/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def evaluate_function(
u.x.scatter_forward()
comm = mesh.comm
points = np.array(points, dtype=np.float64)
assert (
len(points.shape) == 2
), f"Expected points to have shape (num_points, dim), got {points.shape}"
assert len(points.shape) == 2, (
f"Expected points to have shape (num_points, dim), got {points.shape}"
)
num_points = points.shape[0]
extra_dim = 3 - mesh.geometry.dim

Expand Down
3 changes: 1 addition & 2 deletions src/scifem/point_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def __init__(
self._function_space = V
if V.dofmap.bs > 1 and dolfinx.__version__ == "0.8.0":
raise NotImplementedError(
"Block function spaces are not supported in dolfinx 0.8.0. "
"Please upgrade dolfinx"
"Block function spaces are not supported in dolfinx 0.8.0. Please upgrade dolfinx"
)
self._input_points = points
self._magnitude = magnitude
Expand Down

0 comments on commit 2dd2438

Please sign in to comment.