Skip to content

Commit ad977d1

Browse files
authored
Merge pull request #112 from jacobrking/jking-scipy-update
Fix SciPy.integrate naming
2 parents 992ffd4 + 69dd8be commit ad977d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aurora/nbi_neutrals.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,10 @@ def bt_rate_maxwell_average(sigma_fun, Ti_keV, E_beam, m_bckg, m_beam, n_level):
563563
sig * np.sqrt(u2) * np.exp(-(vz[i] ** 2.0 + vr[j] ** 2.0)) * vr[j]
564564
)
565565

566-
fz[:, :, i] = scipy.integrate.simps(fr, vr, axis=-1)
566+
fz[:, :, i] = scipy.integrate.simpson(fr, vr, axis=-1)
567567

568568
# effective maxwellian-averaged rate:
569-
sig_eff = (2.0 / np.sqrt(np.pi)) * scipy.integrate.simps(fz, vz, axis=-1)
569+
sig_eff = (2.0 / np.sqrt(np.pi)) * scipy.integrate.simpson(fz, vz, axis=-1)
570570
rate = sig_eff * v_therm
571571

572572
return rate
@@ -631,6 +631,6 @@ def tt_rate_maxwell_average(sigma_fun, Ti_keV, m_i, m_n, n_level):
631631
)
632632

633633
prefactor = np.sqrt(2.0 / (np.pi * T_per_amu)) ** (-0.5)
634-
sigmav = prefactor * scipy.integrate.simps(sigma, Erel, axis=-1)
634+
sigmav = prefactor * scipy.integrate.simpson(sigma, Erel, axis=-1)
635635

636636
return sigmav

0 commit comments

Comments
 (0)