def bpas_log_snr_new(file_name: str, mode: str = "INIT"):
    """
    Retrieve ``new`` SNR values from bandpass log file.

    Parameters
    ----------
    file_name : str
        Log file name.
    mode : str, optional
        Bandpass stage. The default is 'INIT' that is all stages.

    Returns
    -------
    res : dict
        Return dictionary {obs: snr}.

    """
    res = {}
    in_bpass = False

    bpas_mode_line = f"PIMA_BPASS_{mode}"

    with open(file_name) as file:
        for line in file:
            if bpas_mode_line in line:
                in_bpass = True
                continue

            if in_bpass and line.startswith("Obs:"):
                cols = line.split()

                obs = int(cols[1])
                snr_new_ind = cols.index("new:") + 1

                try:
                    res[obs] = float(cols[snr_new_ind])
                except ValueError:
                    res[obs] = 0.0

    return res