Skip to content

Commit 57e1059

Browse files
committed
correct radial weights for 'circular_pw' and 'circular_ps'
1 parent 60c4f13 commit 57e1059

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

micarray/modal/radial.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,15 +260,15 @@ def circular_pw(N, k, r, setup):
260260

261261
bn = circ_radial_weights(N, kr, setup)
262262
for i, x in enumerate(kr):
263-
bn[i, :] = bn[i, :] * 4*np.pi * (1j)**n
263+
bn[i, :] = bn[i, :] * (1j)**(-n)
264264
return bn
265265

266266

267267
def circular_ls(N, k, r, rs, setup):
268-
r"""Radial coefficients for a point source.
268+
r"""Radial coefficients for a line source.
269269
270-
Computes the radial component of the spherical harmonics expansion of a
271-
point source impinging on a spherical array.
270+
Computes the radial component of the circular harmonics expansion of a
271+
line source impinging on a circular array.
272272
273273
.. math::
274274
@@ -296,10 +296,10 @@ def circular_ls(N, k, r, rs, setup):
296296
krs = k*rs
297297
n = np.arange(N+1)
298298

299-
bn = weights(N, k*r, setup)
299+
bn = circ_radial_weights(N, k*r, setup)
300300
for i, x in enumerate(krs):
301301
Hn = special.hankel2(n, x)
302-
bn[i, :] = bn[i, :] * -1j/4 * (-1j) * Hn
302+
bn[i, :] = bn[i, :] * -1j/4 * Hn
303303
return bn
304304

305305

0 commit comments

Comments
 (0)