an class="o">=</span> <span class="n">basis_lengths</span><span class="p">[</span><span class="n">min_index</span><span class="p">]</span>

            <span class="bp">self</span><span class="o">.</span><span class="n">_displacement_tensor</span> <span class="o">=</span> <span class="n">D</span>
            <span class="bp">self</span><span class="o">.</span><span class="n">_distance_matrix</span> <span class="o">=</span> <span class="n">D_len</span>

        <span class="k">return</span> <span class="bp">