-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
f89cb08
commit 75ef8df
Showing
6 changed files
with
72 additions
and
42 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,2 +1,4 @@ | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.jpg filter=lfs diff=lfs merge=lfs -text | ||
*.frd filter=lfs diff=lfs merge=lfs -text | ||
*.zma filter=lfs diff=lfs merge=lfs -text |
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
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,3 @@ | ||
# Dayton Audio Test System (DATS) | ||
|
||
Folders are downloaded from the main [Dayton Audio](https://daytonaudio.com) website. Unused files are removed. |
Git LFS file not shown
Git LFS file not shown
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 numpy as np | ||
|
||
from akustik.speaker.dats import ( | ||
max_impedance, | ||
read_dats_folder, | ||
) | ||
|
||
|
||
def test_max_sound_pressure(): | ||
folder = "src/python/tests/data/dats/RSS390HF-4" | ||
name, frd, zma = read_dats_folder(folder) | ||
assert name == "RSS390HF-4" | ||
assert frd.shape == (416, 3) | ||
assert zma.shape == (344, 3) | ||
|
||
Z: np.ndarray = zma["Impedance"].to_numpy() | ||
f: np.ndarray = zma["Frequency"].to_numpy() | ||
assert np.allclose(max_impedance(Z, f), (21.173, 19.585)) |