You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the init.py script, the following error message appears:
python
Copiar código
assert not ((pos_src >= room_sz).any() or (pos_src <= 0).any()), "The sources must be inside the room"
assert not ((pos_rcv >= room_sz).any() or (pos_rcv <= 0).any()), "The receivers must be inside the room"
In my simulation, all sources and receivers were correctly positioned inside the room, but the error was still raised. It seems that the simulator is comparing the x-axis positions of the room with the x, y, and z positions of the sources.
Shouldn't the comparison be performed correspondingly, such that the x-axis of the room is compared with the x-axis of the sources, the y-axis of the room with the y-axis of the sources, and the z-axis of the room with the z-axis of the sources?
The text was updated successfully, but these errors were encountered:
The pos_src >= room_sz should broadcast room_sz correctly and perform the comparison axis by axis if pos_src and room_sz are numpy arrays of shape (N, 3) and (3,) as indicated in the documentation of the library. Then .any() will return true if any of the axes were True and raise the assert exception.
In the init.py script, the following error message appears:
python
Copiar código
assert not ((pos_src >= room_sz).any() or (pos_src <= 0).any()), "The sources must be inside the room"
assert not ((pos_rcv >= room_sz).any() or (pos_rcv <= 0).any()), "The receivers must be inside the room"
In my simulation, all sources and receivers were correctly positioned inside the room, but the error was still raised. It seems that the simulator is comparing the x-axis positions of the room with the x, y, and z positions of the sources.
Shouldn't the comparison be performed correspondingly, such that the x-axis of the room is compared with the x-axis of the sources, the y-axis of the room with the y-axis of the sources, and the z-axis of the room with the z-axis of the sources?
The text was updated successfully, but these errors were encountered: