="k">def</span> <span class="nf">removeInfiniteClasses</span><span class="p">(</span><span class="n">Dgm</span><span class="p">):</span>
<span class="w">    </span><span class="sd">&#39;&#39;&#39;</span>
<span class="sd">    Simply deletes classes that have infinite lifetimes.</span>

<span class="sd">    &#39;&#39;&#39;</span>
    <span class="n">keepRows</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">isfinite</span><span class="p">(</span><span class="n">D