c33ed08e8ac55f147b09dc4b3d5fb76b1758d1f8,pyroomacoustics/libroom_src/tests/test_ray_energy.py,TestRayEnergy,test_sqare_room,#TestRayEnergy#,7
Before Change
energy = 1. * (1. - absorption) ** 2
distance = round_trip / 2.
while energy / (4 * np.pi * distance) > energy_thresh:
log_gt.append([distance / sound_speed, energy / (4 * np.pi * distance)])
energy *= (1. - absorption) ** 4
distance += round_trip
After Change
print("Creating the cpp room")
c_room = pra.room_factory(room.walls, room.obstructing_walls, room.mic_array.R)
c_room.set_params(
pra.constants.get("c"),
energy_thresh, // energy threshold for rays
5., // time threshold for rays
0.15, // detector radius
False, // is it hybrid model ?
2, // order of ISM
)
print("Running ray tracing")
log = c_room.get_rir_entries(
np.c_[[-np.pi / 4., np.pi / 2.]],
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: LCAV/pyroomacoustics
Commit Name: c33ed08e8ac55f147b09dc4b3d5fb76b1758d1f8
Time: 2019-02-08
Author: fakufaku@gmail.com
File Name: pyroomacoustics/libroom_src/tests/test_ray_energy.py
Class Name: TestRayEnergy
Method Name: test_sqare_room
Project Name: LCAV/pyroomacoustics
Commit Name: 8be060faa25b05f31c93662678ab6281e2c228c4
Time: 2019-02-08
Author: fakufaku@gmail.com
File Name: pyroomacoustics/libroom_src/tests/test_room_walls.py
Class Name: TestRoomWalls
Method Name: test_scat_ray_ok
Project Name: LCAV/pyroomacoustics
Commit Name: 8be060faa25b05f31c93662678ab6281e2c228c4
Time: 2019-02-08
Author: fakufaku@gmail.com
File Name: pyroomacoustics/libroom_src/tests/test_room_walls.py
Class Name: TestRoomWalls
Method Name: test_scat_ray_blocked