Loading tests/ssnr.py +1 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ def get_ssnr( ss_seg = np.log10(1 + nrg_ref / (denom_add + nrg_diff)) # only sum up segments that fall inside the thresholds # add smapp eps to nrg_ref to prevent RuntimeWarnings from numpy # add small eps to nrg_ref to prevent RuntimeWarnings from numpy ref_power = 10 * np.log10((nrg_ref + 10**-7) / len_seg) zero_mask = np.logical_or(ref_power < thresh_low, ref_power > thresh_high) Loading Loading
tests/ssnr.py +1 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ def get_ssnr( ss_seg = np.log10(1 + nrg_ref / (denom_add + nrg_diff)) # only sum up segments that fall inside the thresholds # add smapp eps to nrg_ref to prevent RuntimeWarnings from numpy # add small eps to nrg_ref to prevent RuntimeWarnings from numpy ref_power = 10 * np.log10((nrg_ref + 10**-7) / len_seg) zero_mask = np.logical_or(ref_power < thresh_low, ref_power > thresh_high) Loading