Skip to content

Commit

Permalink
replace np.asfarray due to deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hld committed Dec 22, 2024
1 parent 9b84e86 commit e4a66a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spaudiopy/sph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1283,8 +1283,8 @@ def sh_mult(a_nm, b_nm, sh_type):
'real'))
"""
a_nm = utils.asarray_1d(np.asfarray(a_nm))
b_nm = utils.asarray_1d(np.asfarray(b_nm))
a_nm = utils.asarray_1d(np.asarray(a_nm, dtype=float))
b_nm = utils.asarray_1d(np.asarray(b_nm, dtype=float))
N1 = int(np.sqrt(len(a_nm)) - 1)
N2 = int(np.sqrt(len(b_nm)) - 1)
N_out = N1 + N2
Expand Down

0 comments on commit e4a66a8

Please sign in to comment.