diff --git a/pysyncon/robust.py b/pysyncon/robust.py index c7af946..2866465 100644 --- a/pysyncon/robust.py +++ b/pysyncon/robust.py @@ -101,7 +101,7 @@ def _sv_decomposition( """ if not threshold and not sv_count: raise ValueError("One of `threshold` or `sv_count` must be supplied.") - + u, s, v = np.linalg.svd(Y) if threshold: idx = 0 while s[idx] > threshold: @@ -109,7 +109,6 @@ def _sv_decomposition( else: idx = sv_count - u, s, v = np.linalg.svd(Y) s_res = np.zeros_like(Y) s_res[:idx, :idx] = np.diag(s[:idx])