            positions (numpy.ndarray): The positions to scale</span>
<span class="sd">            wrap (numpy.ndarray): Whether the positions should be wrapped</span>
<span class="sd">                inside the cell.</span>

<span class="sd">        Returns:</span>
<span class="sd">            numpy.ndarray: The cartesian positions</span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="k">if</span> <span class="n">wrap</span><span class="p">:</span>
            <span class="k">for</s