lint with black and isort #513
GitHub Actions / Black
failed
Apr 25, 2024 in 0s
1 error
Black found 1 error
Annotations
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)
Loading