"n">ndim</span> <span class="o">==</span> <span class="mi">2</span><span class="p">):</span> 
        <span class="n">data</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">expand_dims</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">axis</span> <span class="o">=</span> <span class="mi">1</span><span class="p">)</span>  <span class="c1"># add light source axis 1     </span>

    <span class="k">if</span> <span cl