span class="o">=</span><span class="mf">2.9</span><span class="p">),</span>
    <span class="p">)</span>

<span class="c1"># source frame</span>
<span class="n">rate2_src</span> <span class="o">=</span> <span class="n">cbc</span><span class="o">.</span><span class="n">merger_rate_density</span><span class="p">(</span><span class="n">z</span><span class="p">)</span>
<span class="c1"># detector frame</span>
<span class="c1"># normalised to 1</span>
<span class="n">rate2_det</span> <span class="o">=</span> <sp