From e18db8abf5594d6f3456a08dc215659c41c5e5ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20D=C3=ADaz-Guerra=20Aparicio?= Date: Wed, 5 May 2021 19:20:12 +0200 Subject: [PATCH] Fix bug when loadding mic_pattern from a text file Fix the bug reported in https://github.com/DavidDiazGuerra/gpuRIR/issues/19 --- gpuRIR/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpuRIR/__init__.py b/gpuRIR/__init__.py index 6e5e4e9..f1674df 100644 --- a/gpuRIR/__init__.py +++ b/gpuRIR/__init__.py @@ -143,7 +143,7 @@ def simulateRIR(room_sz, beta, pos_src, pos_rcv, nb_img, Tmax, fs, Tdiff=None, m assert not ((pos_rcv >= room_sz).any() or (pos_rcv <= 0).any()), "The receivers must be inside the room" assert Tdiff is None or Tdiff <= Tmax, "Tmax must be equal or greater than Tdiff" assert mic_pattern in mic_patterns, "mic_pattern must be omni, homni, card, hypcard, subcard or bidir" - assert mic_pattern is "omni" or orV_rcv is not None, "the mics are not omni but their orientation is undefined" + assert mic_pattern == "omni" or orV_rcv is not None, "the mics are not omni but their orientation is undefined" pos_src = pos_src.astype('float32', order='C', copy=False) pos_rcv = pos_rcv.astype('float32', order='C', copy=False)