pygwb.util.get_window_tuple

pygwb.util.get_window_tuple(window_fftgram_dict={'window_fftgram': 'hann'})[source]

Unpack the window_fft_dict dictionary into a tuple that can be read by scipy.signal.get_window.

Parameters:

window_fftgram_dict (dictionary, optional) – Dictionary with window characteristics. Default is window_fftgram_dict={"window_fftgram": "hann"}.

Returns:
window_tuple: tuple

A tuple containing the window_fft name as the first entry, followed by optional entries of the window_fft_dict.

Notes

window_fftgram_dict is expected to have at least one item, window_fftgram.