ghlight=smooth</span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="c1"># adding padding</span>
    <span class="n">padded_spectrum</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">r_</span><span class="p">[</span>
        <span class="n">intensity_values_array</span><span class="p">[</span><span class="n">kernel_size</span> <span class="o">-</span> <span class="mi">1</span><span class="p">:</span><span class="mi">0</span><span class="p">:</s