@@ -173,7 +173,7 @@ def init_receiver_directivities(params):
173
173
# If one needs to normalize the receiver directivity by point source strength
174
174
# Note that this is because one uses point source as source to get the directivity data in FEM simulation
175
175
# Thus the point source strength needs to be compensated
176
- if params ["ifRecerverNormalize " ]:
176
+ if params ["ifReceiverNormalize " ]:
177
177
S = params ["pointSrcStrength" ]
178
178
Psh_receiver = Psh_receiver / S [..., None ]
179
179
# ------------------------------------------------
@@ -243,7 +243,7 @@ def init_receiver_directivities(params):
243
243
# # If one needs to normalize the receiver directivity by point source strength
244
244
# # Note that this is because one uses point source as source to get the directivity data in FEM simulation
245
245
# # Thus the point source strength needs to be compensated
246
- # if params["ifRecerverNormalize "]:
246
+ # if params["ifReceiverNormalize "]:
247
247
# S = params["pointSrcStrength"]
248
248
# Psh_receiver = Psh_receiver / S[..., None]
249
249
# # ------------------------------------------------
@@ -538,7 +538,7 @@ def init_receiver_directivities_ARG(params, if_rotate_room, **kwargs):
538
538
# ---------------- Some checks ----------------
539
539
# Check the radius of the receiver if matches the one defined in params["radiusReceiver"]
540
540
if np .abs (r0_receiver - params ["radiusReceiver" ]) > 1e-3 :
541
- # Raise a warning if the radius of the receiver is not the same as the one defined in params["radiusReceiver"]
541
+ # Raise a warning if the radius of the receiver is not the same as the one defined in params["radiusReceiver"]"
542
542
print (
543
543
f"Warning: The radius of the receiver is { r0_receiver } m, not the same as the one defined in params['radiusReceiver']"
544
544
)
@@ -550,7 +550,7 @@ def init_receiver_directivities_ARG(params, if_rotate_room, **kwargs):
550
550
"The frequencies in the directivity data are not the same as the ones defined in params['freqs']"
551
551
)
552
552
# ------------------------------------------------
553
- if params ["ifRecerverNormalize " ]:
553
+ if params ["ifReceiverNormalize " ]:
554
554
S = params ["pointSrcStrength" ]
555
555
Psh_receiver = Psh_receiver / S [..., None ]
556
556
# Get the receiver sampling points in Cartesian coordinates w.r.t the origin
0 commit comments