Skip to content

Commit 8dfcd63

Browse files
Merge pull request #205 from dihm/scipy_deprecation
Replace `scipy.special.sph_harm` with `scipy.special.sph_harm_y`
2 parents 8c65cc2 + ae936fb commit 8dfcd63

4 files changed

Lines changed: 828 additions & 1109 deletions

File tree

arc/calculations_atom_single.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
import scipy.sparse as sp
4242
from scipy.sparse import csr_matrix
43-
from scipy.special import sph_harm
43+
from scipy.special import sph_harm_y
4444

4545
import sys
4646

@@ -56,7 +56,7 @@
5656

5757

5858
def Ylm(l, m, theta, phi):
59-
return sph_harm(m, l, phi, theta)
59+
return sph_harm_y(m, l, phi, theta)
6060

6161

6262
__all__ = [

arc/wigner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
from __future__ import division, print_function, absolute_import
4-
from scipy.special import jv, legendre, sph_harm, jacobi
4+
from scipy.special import jv, legendre, sph_harm_y, jacobi
55
from math import pi
66
from numpy import conj as conjugate
77
from numpy import floor, sqrt, sin, cos, exp, power
@@ -427,7 +427,7 @@ def _wignerd(j, m, n=0, approx_lim=10):
427427
elif False:
428428
# print('spherical harmonics (exact)')
429429
a = sqrt(4.0 * pi / (2.0 * j + 1.0))
430-
return lambda beta: a * conjugate(sph_harm(m, j, beta, 0.0))
430+
return lambda beta: a * conjugate(sph_harm_y(m, j, beta, 0.0))
431431

432432
jmn_terms = {
433433
j + n: (m - n, m - n),

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ classifiers = [
5555
"Topic :: Scientific/Engineering :: Physics",
5656
"Development Status :: 5 - Production/Stable",
5757
]
58-
requires-python = ">=3.9"
58+
requires-python = ">=3.10"
5959
dependencies = [
60-
"scipy>=0.18.1",
60+
"scipy>=1.15.0",
6161
"numpy>=2.0",
6262
"matplotlib>=1.5.3",
6363
"sympy>=1.1.1",

0 commit comments

Comments
 (0)