Skip to content

Commit 5391c0e

Browse files
committed
xref handling
as proposed by mgeier
1 parent ca0e977 commit 5391c0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/examples/wfs-referencing.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@
197197
"metadata": {},
198198
"outputs": [],
199199
"source": [
200-
"xref = [0, 0.1175, 0] # intentionally no stationary phase point\n",
200+
"xref = 0, 0.1175, 0 # intentionally no stationary phase point\n",
201201
"# we don't forget to normalize the point source's amplitude\n",
202202
"# to this new reference point:\n",
203-
"normalize_gain = 4 * np.pi * np.linalg.norm(xs - np.array(xref))\n",
203+
"normalize_gain = 4 * np.pi * np.linalg.norm(xs - xref)\n",
204204
"d, selection, secondary_source = sfs.fd.wfs.point_25d(\n",
205205
" omega, array.x, array.n, xs, xref=xref)\n",
206206
"p_point = sound_field(\n",

0 commit comments

Comments
 (0)