From 9f5ece967cf044a47ee1db5645645bcd8c7d5fca Mon Sep 17 00:00:00 2001 From: Chris Hold Date: Tue, 30 Jan 2024 22:15:57 +0200 Subject: [PATCH] Bugfix in parsa:sh_beamformer_from_pattern() --- spaudiopy/parsa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spaudiopy/parsa.py b/spaudiopy/parsa.py index 771338d..377cf13 100644 --- a/spaudiopy/parsa.py +++ b/spaudiopy/parsa.py @@ -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')