pan class="ne">ValueError</span><span class="p">(</span>
                <span class="s2">&quot;All of [&#39;lattvec&#39;, &#39;types&#39;, &#39;elements&#39;, &#39;positions&#39;] must be &quot;</span>
                <span class="s2">&quot;in control object&quot;</span>
            <span class="p">)</span>

        <span class="n">unique_elements</span> <span class="o">=</span> <span class="bp">self</span><span class="p">[</span><span class="s2">&quot;elements&quot;</span><span class="p">]</span>
        