s="mi">0</span><span class="p">:</span> <span class="c1">#0.4 is the empirical cutoff</span>
            <span class="n">beads</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">vstack</span><span class="p">((</span><span class="n">beads</span><span class="p">,</span> <span class="n">pos</span><span class="o">.</span><span class="n">reshape</span><span class="p">((</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span><span class="mi">3<