 class="p">,</span> <span class="n">fft_shift</span><span class="o">=</span><span class="n">fft_shift</span><span class="p">)</span>

    <span class="n">y</span> <span class="o">=</span> <span class="n">y_i</span>

    <span class="c1"># If the original Length of the signal is known, also remove the zero padding at the end</span>
    <span class="k">if</span> <span class="n">orig_sig_len</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
        <span class="n">y</span> <s