Skip to content

Commit e4a66a8

Browse files
committed
replace np.asfarray due to deprecation
1 parent 9b84e86 commit e4a66a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spaudiopy/sph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,8 +1283,8 @@ def sh_mult(a_nm, b_nm, sh_type):
12831283
'real'))
12841284
12851285
"""
1286-
a_nm = utils.asarray_1d(np.asfarray(a_nm))
1287-
b_nm = utils.asarray_1d(np.asfarray(b_nm))
1286+
a_nm = utils.asarray_1d(np.asarray(a_nm, dtype=float))
1287+
b_nm = utils.asarray_1d(np.asarray(b_nm, dtype=float))
12881288
N1 = int(np.sqrt(len(a_nm)) - 1)
12891289
N2 = int(np.sqrt(len(b_nm)) - 1)
12901290
N_out = N1 + N2

0 commit comments

Comments
 (0)