ss="nb">chr</span><span class="p">)):</span>
            <span class="k">if</span> <span class="n">beads_chr</span><span class="o">!=</span> <span class="mi">0</span><span class="p">:</span>
                <span class="k">while</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">sum</span><span class="p">(</span><span class="n">xyz_chr</span><span class="p">[</span><span class="n">atom_index</span><span class="p">]</span><span class="o">**</span><span class="mi">2