From b896a2a074a9f7f1c363588e8f51f3328d6db89d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:35:15 +0100 Subject: [PATCH] :art: Format Python code with psf/black (#381) Co-authored-by: dario-coscia --- pina/operators.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pina/operators.py b/pina/operators.py index e39d3bc7..e523ed92 100644 --- a/pina/operators.py +++ b/pina/operators.py @@ -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 @@ -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):