Skip to content

Commit b896a2a

Browse files
🎨 Format Python code with psf/black (#381)
Co-authored-by: dario-coscia <[email protected]>
1 parent a78f44e commit b896a2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pina/operators.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def scalar_laplace(output_, input_, components, d):
184184
Laplacian. It has to be a column tensor.
185185
:param LabelTensor input_: the input tensor with respect to which
186186
computing the Laplacian.
187-
:param list(str) components: the name of the output variables to
187+
:param list(str) components: the name of the output variables to
188188
calculate the Laplacian for. It should be a subset of the output
189189
labels. If None, all the output variables are considered.
190190
:param list(str) d: the name of the input variables on which the
@@ -224,7 +224,8 @@ def scalar_laplace(output_, input_, components, d):
224224
else:
225225
result = torch.empty(
226226
size=(input_.shape[0], len(components)),
227-
dtype=output_.dtype, device=output_.device
227+
dtype=output_.dtype,
228+
device=output_.device,
228229
)
229230
labels = [None] * len(components)
230231
for idx, c in enumerate(components):

0 commit comments

Comments
 (0)