def canonical_name(name):
if name.lower() == '<STR_LIT>':  <EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>try:  <EOL><INDENT>return scipy_windows._win_equiv[name.lower()].__name__<EOL><DEDENT>except AttributeError:  <EOL><INDENT>try:<EOL><INDENT>return getattr(scipy_windows, name.lower()).__name__<EOL><DEDENT>except AttributeError:  <EOL><INDENT>pass  <EOL><DEDENT><DEDENT>except KeyError:  <EOL><INDENT>pass  <EOL><DEDENT>raise ValueError('<STR_LIT>'<EOL>% name,)<EOL>
Find the canonical name for the given window in scipy.signal

    Parameters
    ----------
    name : `str`
        the name of the window you want

    Returns
    -------
    realname : `str`
        the name of the window as implemented in `scipy.signal.window`

    Raises
    -------
    ValueError
        if ``name`` cannot be resolved to a window function in `scipy.signal`

    Examples
    --------
    >>> from gwpy.signal.window import canonical_name
    >>> canonical_name('hanning')
    'hann'
    >>> canonical_name('ksr')
    'kaiser'