Skip to content

Commit 5564c7b

Browse files
authored
Merge pull request #3 from audiolabs/ehabets/fix-spelling
Fix spelling errors in DEISM
2 parents 2aba7e9 + 3d75984 commit 5564c7b

File tree

5 files changed

+1314
-1314
lines changed

5 files changed

+1314
-1314
lines changed

deism/core_deism.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def init_receiver_directivities(params):
173173
# If one needs to normalize the receiver directivity by point source strength
174174
# Note that this is because one uses point source as source to get the directivity data in FEM simulation
175175
# Thus the point source strength needs to be compensated
176-
if params["ifRecerverNormalize"]:
176+
if params["ifReceiverNormalize"]:
177177
S = params["pointSrcStrength"]
178178
Psh_receiver = Psh_receiver / S[..., None]
179179
# ------------------------------------------------
@@ -243,7 +243,7 @@ def init_receiver_directivities(params):
243243
# # If one needs to normalize the receiver directivity by point source strength
244244
# # Note that this is because one uses point source as source to get the directivity data in FEM simulation
245245
# # Thus the point source strength needs to be compensated
246-
# if params["ifRecerverNormalize"]:
246+
# if params["ifReceiverNormalize"]:
247247
# S = params["pointSrcStrength"]
248248
# Psh_receiver = Psh_receiver / S[..., None]
249249
# # ------------------------------------------------
@@ -538,7 +538,7 @@ def init_receiver_directivities_ARG(params, if_rotate_room, **kwargs):
538538
# ---------------- Some checks ----------------
539539
# Check the radius of the receiver if matches the one defined in params["radiusReceiver"]
540540
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"]"
542542
print(
543543
f"Warning: The radius of the receiver is {r0_receiver} m, not the same as the one defined in params['radiusReceiver']"
544544
)
@@ -550,7 +550,7 @@ def init_receiver_directivities_ARG(params, if_rotate_room, **kwargs):
550550
"The frequencies in the directivity data are not the same as the ones defined in params['freqs']"
551551
)
552552
# ------------------------------------------------
553-
if params["ifRecerverNormalize"]:
553+
if params["ifReceiverNormalize"]:
554554
S = params["pointSrcStrength"]
555555
Psh_receiver = Psh_receiver / S[..., None]
556556
# Get the receiver sampling points in Cartesian coordinates w.r.t the origin

0 commit comments

Comments
 (0)