From 4f359fbdb9fb2d2c31f939e8a2d2a8a8ff7a5e8b Mon Sep 17 00:00:00 2001 From: Dave Turner Date: Mon, 28 Oct 2024 13:53:35 -0400 Subject: [PATCH] Flake8 fixes. --- src/brainiak/reprsimil/brsa.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/brainiak/reprsimil/brsa.py b/src/brainiak/reprsimil/brsa.py index 16ce27e8..d44ded25 100755 --- a/src/brainiak/reprsimil/brsa.py +++ b/src/brainiak/reprsimil/brsa.py @@ -2166,7 +2166,8 @@ def _fit_null(self, Y, X_base, scan_onsets=None): X0TAY = self._make_ar1_quad_form(X0TY, X0TDY, X0TFY, est_rho1_AR1_null) # dimension: #baseline*space - beta0s = np.squeeze(np.linalg.solve(X0TAX0, X0TAY.T[:, :, None]).T) + beta0s = np.squeeze( + np.linalg.solve(X0TAX0, X0TAY.T[:, :, None]).T) residuals = Y - np.dot(X_base, beta0s[:np.shape(X_base)[1], :]) X_res = self.nureg_method(self.n_nureg_).fit_transform( self.preprocess_residual(residuals)) @@ -2184,7 +2185,8 @@ def _fit_null(self, Y, X_base, scan_onsets=None): X0TAY = self._make_ar1_quad_form(X0TY, X0TDY, X0TFY, est_rho1_AR1_null) # dimension: #baseline*space - est_beta0_AR1_null = np.squeeze(np.linalg.solve(X0TAX0, X0TAY.T[:,:,None]).T) + est_beta0_AR1_null = np.squeeze( + np.linalg.solve(X0TAX0, X0TAY.T[:,:,None]).T) YTAY = self._make_ar1_quad_form(YTY_diag, YTDY_diag, YTFY_diag, est_rho1_AR1_null)