Skip to content

Commit 7df31a3

Browse files
committed
use old sph_harm until removed in scipy 1.17.0; maybe by them sph_harm_y will be debugged
1 parent e59fc05 commit 7df31a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GSASII/GSASIIlattice.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3039,10 +3039,10 @@ def SphHarmAng(L,M,P,Th,Ph):
30393039
:returns ylmp value/array: as reals
30403040
'''
30413041
try:
3042-
ylmp = spsp.sph_harm_y(L,M,rpd*Th,rpd*Ph)
3043-
except AttributeError:
3044-
#### TODO: this will be deprecated in future scipy; new one sph_harm_y in scipy 1.15.1
3042+
#### TODO: this will be deprecated in scipy 1.17.0
30453043
ylmp = spsp.sph_harm(M,L,rpd*Th,rpd*Ph) #wants radians; order then degree
3044+
except AttributeError: #new one sph_harm_y in scipy 1.15.1 but buggy?
3045+
ylmp = spsp.sph_harm_y(L,M,rpd*Th,rpd*Ph) #order L,M makes more sense
30463046

30473047
if M > 0:
30483048
return (-1)**M*P*np.real(ylmp)*SQ2

0 commit comments

Comments
 (0)