lass="p">,</span>
            <span class="s2">&quot;positions&quot;</span><span class="p">:</span> <span class="n">structure</span><span class="o">.</span><span class="n">frac_coords</span><span class="o">.</span><span class="n">tolist</span><span class="p">(),</span>
        <span class="p">}</span>

        <span class="k">if</span> <span class="n">reciprocal_density</span><span class="p">:</span>
            <span class="n">kpoints</span> <span class="o">=</span> <span class="n">Kpoints</span><span clas