def decompose_spectrum(spectrum) -> tuple:
    """ Decomposes an NI Spectrum into a tuple of f0, dt, and y values. """
    f0 = spectrum.StartFrequency
    df = spectrum.FrequencyIncrement
    y = list(spectrum.GetData())
    return f0, df, y