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

Method test_plot_walls_2d

tests/test_room_plot.py:32–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 room.plot()
31
32 def test_plot_walls_2d(self):
33 room = pra.ShoeBox([3, 4], max_order=2)
34 room.add_source([1.4, 2.2])
35 room.add_microphone([2.3, 3.5])
36
37 fig, ax = room.plot()
38 self.assertTrue(_has_wall_collection(ax))
39
40 fig, ax = room.plot(plot_walls=False)
41 self.assertFalse(_has_wall_collection(ax))
42
43 def test_plot_walls_3d(self):
44 room = pra.ShoeBox([3, 4, 5], max_order=2)

Callers

nothing calls this directly

Calls 4

_has_wall_collectionFunction · 0.85
add_sourceMethod · 0.80
add_microphoneMethod · 0.80
plotMethod · 0.45

Tested by

no test coverage detected