Skip to content

Commit

Permalink
🎨 Format Python code with psf/black (#381)
Browse files Browse the repository at this point in the history
Co-authored-by: dario-coscia <[email protected]>
  • Loading branch information
github-actions[bot] and dario-coscia authored Nov 18, 2024
1 parent a78f44e commit b896a2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pina/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def scalar_laplace(output_, input_, components, d):
Laplacian. It has to be a column tensor.
:param LabelTensor input_: the input tensor with respect to which
computing the Laplacian.
:param list(str) components: the name of the output variables to
:param list(str) components: the name of the output variables to
calculate the Laplacian for. It should be a subset of the output
labels. If None, all the output variables are considered.
:param list(str) d: the name of the input variables on which the
Expand Down Expand Up @@ -224,7 +224,8 @@ def scalar_laplace(output_, input_, components, d):
else:
result = torch.empty(
size=(input_.shape[0], len(components)),
dtype=output_.dtype, device=output_.device
dtype=output_.dtype,
device=output_.device,
)
labels = [None] * len(components)
for idx, c in enumerate(components):
Expand Down

0 comments on commit b896a2a

Please sign in to comment.