n> <span class="o">==</span> <span class="n">np</span><span class="o">.</span><span class="n">inf</span><span class="p">:</span>
            <span class="c1"># Get rid of rows with death time infinity</span>
            <span class="n">numRows</span> <span class="o">=</span> <span class="n">Dgm</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
            <span class="n">rowsWithoutInf</span> <span class="o">=</span> <span cla