Skip to content

Commit

Permalink
Bugfix in parsa:sh_beamformer_from_pattern()
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hld committed Jan 30, 2024
1 parent 0cc2631 commit 9f5ece9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spaudiopy/parsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def sh_beamformer_from_pattern(pattern, N_sph, azi_steer, zen_steer):
else:
raise ValueError("Pattern not available: " + pattern)
else:
c_n = utils.asarray1d(pattern)
assert len(c_n) == (N_sph+1), "Input not matching:" + c_n
c_n = utils.asarray_1d(pattern)
assert len(c_n) == (N_sph+1), "Input not matching:" + str(c_n)

w_nm = sph.repeat_per_order(c_n)
Y_steer = sph.sh_matrix(N_sph, azi_steer, zen_steer, sh_type='real')
Expand Down

0 comments on commit 9f5ece9

Please sign in to comment.