()
| 41 | |
| 42 | |
| 43 | def room_construct(): |
| 44 | walls = [ |
| 45 | pra.wall_factory(c, [a], [s]) |
| 46 | for c, a, s in zip(wall_corners, absorptions, scatterings) |
| 47 | ] |
| 48 | obstructing_walls = [] |
| 49 | microphones = np.array([[1], [2], [1]]) |
| 50 | |
| 51 | room = pra.libroom.Room( |
| 52 | walls, |
| 53 | [], |
| 54 | [], |
| 55 | pra.constants.get("c"), # speed of sound |
| 56 | 3, |
| 57 | 1e-7, # energy_thres |
| 58 | 1.0, # time_thres |
| 59 | 0.5, # receiver_radius |
| 60 | 0.004, # hist_bin_size |
| 61 | True, # a priori we will always use a hybrid model |
| 62 | ) |
| 63 | |
| 64 | print(room.max_dist) |
| 65 | |
| 66 | return room |
| 67 | |
| 68 | |
| 69 | def test_room_construct(): |
no test coverage detected