s</span><span class="p">)</span>
        <span class="n">hbincenters</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">sort</span><span class="p">(</span><span class="n">hbincenters</span><span class="p">)</span>
        
    <span class="k">else</span><span class="p">:</span>
        <span class="n">hbincenters</span> <span class="o">=</span> <span class="n">hbins</span>
        <span class="n">idx</span> <span class="o">=</span> <span class="n">np</span><span