improvements for 1.5.2

This commit is contained in:
2026-07-29 17:20:23 -07:00
parent 8b017005c5
commit f15a5d9433
8 changed files with 750 additions and 218 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ from pathlib import Path
import numpy as np
from scipy import linalg
from scipy.special import lpmv, sph_harm
from scipy.special import lpmv, sph_harm_y
from .. import __version__
from .._fiff.compensator import make_compensator
@@ -1487,7 +1487,7 @@ def _sss_basis_basic(exp, coils, mag_scale=100.0, method="standard"):
S_in_out = list()
grads_in_out = list()
# Same spherical harmonic is used for both internal and external
sph = sph_harm(order, degree, az, pol)
sph = sph_harm_y(order, degree, az, pol)
sph_norm = _sph_harm_norm(order, degree)
# Compute complex gradient for all integration points
# in spherical coordinates (Eq. 6). The gradient for rad, az, pol