an class="mi">0</span><span class="p">)</span>
        <span class="n">mag_spec_harm</span> <span class="o">=</span> <span class="n">median_filter</span><span class="p">(</span><span class="n">mag_spec</span><span class="p">,</span> <span class="n">fil_len_harm</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>

        <span class="k">if</span> <span class="n">masking_mode</span> <span class="o">==</span> <span class="s1">&#39;binary&#39;</span><span class="p">:</span>
       