-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
[build-system] | ||
# Minimum requirements for the build system to execute. | ||
requires = ["setuptools", "wheel", "numpy>=1.13.0", "Cython", "pybind11>=2.2"] # PEP 508 specifications. | ||
|
||
[tool.pytest.ini_options] | ||
filterwarnings = [ | ||
'ignore:Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.:UserWarning' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import pyroomacoustics as pra | ||
import matplotlib | ||
|
||
matplotlib.use("Agg") | ||
|
||
|
||
def test_room_2d(): | ||
room = pra.ShoeBox([3, 4], max_order=2) | ||
room.add_source([1.4, 2.2]) | ||
room.add_microphone([2.3, 3.5]) | ||
room.plot() | ||
|
||
|
||
def test_room_3d(): | ||
room = pra.ShoeBox([3, 4, 5], max_order=2) | ||
room.add_source([1.4, 2.2, 4.3]) | ||
room.add_microphone([2.3, 3.5, 2.7]) | ||
room.plot() |