Skip to content

Commit

Permalink
set_snr: add missing default for axis
Browse files Browse the repository at this point in the history
  • Loading branch information
boeddeker committed Aug 16, 2019
1 parent 2735ea5 commit 999233c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nt/speech_enhancement/noise/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_snr(X, N, *, axis=None, keepdims=False):
return 10 * np.log10(power_X / power_N)


def set_snr(X, N, snr, current_snr=None, *, axis, inplace=True):
def set_snr(X, N, snr, current_snr=None, *, axis=None, inplace=True):
"""
Set the SNR of two input images by rescaling the noise signal in place.
Expand Down

0 comments on commit 999233c

Please sign in to comment.