flow statements check for if window is None and if it is not then they explicitly pass window as a keyword argument, but its not necessary to check, since default behavior occurs when window is None (which is what happens when it's not passed as a keyword argument, and that's the intended behavior when window is set to None within the context of the Spectrogram.make function).
Example below, but notice same thing happens beneath it when self.spectFunc == 'mpl'
flow statements check for
if window is None
and if it is not then they explicitly passwindow
as a keyword argument, but its not necessary to check, since default behavior occurs whenwindow
isNone
(which is what happens when it's not passed as a keyword argument, and that's the intended behavior whenwindow
is set toNone
within the context of theSpectrogram.make
function).Example below, but notice same thing happens beneath it when
self.spectFunc == 'mpl'
starting here: https://github.com/NickleDave/hybrid-vocal-classifier/blob/8dd2c69ee550601724771d0f73eea439d7c253f3/hvc/audiofileIO.py#L285