def high_frequency_cutoff_from_config(cp):
    """Gets the high frequency cutoff from the given config file.

    This looks for ``high-frequency-cutoff`` in the ``[model]`` section and
    casts it to float. If none is found, will just return ``None``.

    Parameters
    ----------
    cp : WorkflowConfigParser
        Config file parser to read.

    Returns
    -------
    float or None :
        The high frequency cutoff.
    """
    if cp.has_option('model', 'high-frequency-cutoff'):
        high_frequency_cutoff = float(
            cp.get('model', 'high-frequency-cutoff'))
    else:
        high_frequency_cutoff = None
    return high_frequency_cutoff
Gets the high frequency cutoff from the given config file.

    This looks for ``high-frequency-cutoff`` in the ``[model]`` section and
    casts it to float. If none is found, will just return ``None``.

    Parameters
    ----------
    cp : WorkflowConfigParser
        Config file parser to read.

    Returns
    -------
    float or None :
        The high frequency cutoff.