obtain for the ref_led_flat_idx a spherical position of (0,0)
params:</p>

<pre><code>- ref_led_flat_idx: Flattened index of the reference LED (e.g. obtained with np.argmax on abs STA values)
- mode: One of ["spherical", "cartesian"], for the returned position
</code></pre>
<p>return:</p>

<pre><code>- The rotated LED position</code></pre>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

</div>
 

