class="o">.</span><span class="n">context</span><span class="p">)</span>

<span class="c1"># Keep the final result of bead types in case constructing the configuration for the continuous simulation.</span>
<span class="n">np</span><span class="o">.</span><span class="n">savetxt</span><span class="p">(</span><span class="s1">&#39;results/compt_final_frame.txt&#39;</span><span class="p">,</span> <span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p