-
Notifications
You must be signed in to change notification settings - Fork 1
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
4 changed files
with
28 additions
and
15 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
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
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,12 +1,9 @@ | ||
import pytest | ||
from camilladsp_plot import filter_eval | ||
from camilladsp_plot import filters | ||
import numpy as np | ||
|
||
def test_24bit(): | ||
filt = filter_eval.Conv(None, 44100) | ||
vect = np.asarray([1, 0, 0, 255, 0, 0, 0, 0, 1], dtype=np.uint8) | ||
expected = np.array([2**16, -2**16, 1]) | ||
new_vect = filt._repack_24bit(vect) | ||
assert abs(np.sum(new_vect-expected))<1e-15 | ||
def test_conv(): | ||
filt = filters.Conv(None, 44100) | ||
# TODO make proper tests | ||
|
||
|