magoptlib.sh_fitting ==================== .. py:module:: magoptlib.sh_fitting Functions --------- .. autoapisummary:: magoptlib.sh_fitting.get_m_l_vals magoptlib.sh_fitting.cartesian2spherical_cpu magoptlib.sh_fitting.precompute_sh_coeffs Module Contents --------------- .. py:function:: get_m_l_vals(max_sh_order) Get the (l, m) values for spherical harmonics. :param max_sh_order: Maximum spherical harmonic order. :type max_sh_order: int :returns: Two numpy arrays containing the m and l values. :rtype: tuple .. py:function:: cartesian2spherical_cpu(Bx, By, Bz, theta_vals, phi_vals) .. py:function:: precompute_sh_coeffs(Bx, By, Bz, theta_values, phi_values, n_magnets=8, radius=20.0, max_sh_order=24)