Skip to content

Commit 6b355b4

Browse files
committed
avoid codacy warning
1 parent aa2ba5f commit 6b355b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pina/model/block/pod_block.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,16 @@ def _fit_pod(self, X, randomized):
150150
"This may slow down computations.",
151151
ResourceWarning,
152152
)
153-
u, s, v = torch.svd(X.T)
153+
u, s, _ = torch.svd(X.T)
154154
else:
155155
if randomized:
156156
warnings.warn(
157157
"Considering a randomized algorithm to compute the POD basis"
158158
)
159-
u, s, v = torch.svd_lowrank(X.T, q=X.shape[0])
159+
u, s, _ = torch.svd_lowrank(X.T, q=X.shape[0])
160160

161161
else:
162-
u, s, v = torch.svd(X.T)
162+
u, s, _ = torch.svd(X.T)
163163
self._basis = u.T
164164
self._singular_values = s
165165

0 commit comments

Comments
 (0)