MCPcopy
hub / github.com/LCAV/pyroomacoustics / room_construct

Function room_construct

tests/libroom/test_room_construct.py:43–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def 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
69def test_room_construct():

Callers 1

test_room_constructFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected