Skip to content

lint with black and isort #513

lint with black and isort

lint with black and isort #513

GitHub Actions / Black failed Apr 25, 2024 in 0s

1 error

Black found 1 error

Annotations

Check failure on line 172 in /home/runner/work/pyroomacoustics/pyroomacoustics/pyroomacoustics/bss/fastmnmf.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pyroomacoustics/pyroomacoustics/pyroomacoustics/bss/fastmnmf.py#L159-L172

 
         lambda_NFT = W_NFK @ H_NKT + eps
         Y_FTM = np.einsum("nft, nfm -> ftm", lambda_NFT, G_NFM)
 
         # update G_NFM (diagonal element of spatial covariance matrices)
-        numerator = np.einsum(
-            "nft, ftm -> nfm", lambda_NFT, Qx_power_FTM / (Y_FTM**2)
-        )
+        numerator = np.einsum("nft, ftm -> nfm", lambda_NFT, Qx_power_FTM / (Y_FTM**2))
         denominator = np.einsum("nft, ftm -> nfm", lambda_NFT, 1 / Y_FTM) + eps
         G_NFM *= np.sqrt(numerator / denominator)
         Y_FTM = np.einsum("nft, nfm -> ftm", lambda_NFT, G_NFM)
 
         # udpate Q (matrix for joint diagonalization)