Skip to content

Commit

Permalink
Merge pull request #24 from DavidDiazGuerra/fix-issue-19
Browse files Browse the repository at this point in the history
Fix bug when loadding mic_pattern from a text file
  • Loading branch information
DavidDiazGuerra authored Aug 18, 2021
2 parents d59d304 + e18db8a commit 57463ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpuRIR/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 57463ff

Please sign in to comment.