pan class="o">.</span><span class="n">squeeze</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">axis</span> <span class="o">=</span> <span class="n">x</span><span class="o">.</span><span class="n">ndim</span><span class="o">-</span><span class="mi">1</span><span class="p">),</span><span class="n">DEi</span><span class="p">)))</span>
    
    <span class="c1"># Calculate correct type of DE:</span>
    <span class="k">if</span> <span class="n">DEtype</span> <span c