ass="p">(</span><span class="mi">2</span><span class="p">),</span> <span class="n">mag_spec</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">zeros</span><span class="p">(</span><span class="mi">2</span><span class="p">)))</span>
    <span class="n">peaks</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">where</span><span class="p">((</span><span class="n">mag_spec_padded</span><span class="p">[</span><span class="m