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
fa67dce
commit 5d9f1e3
Showing
2 changed files
with
125 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import pytest | ||
|
||
from stimuli.components.circular import resolve_circular_params | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"ppd, shape, visual_size, n_rings, ring_width, frequency", | ||
( | ||
((32, 32), (1024, 1024), (32, 32), 8, 2, 1 / 2), | ||
((32, 32), (1024, 1024), (32, 32), 4, 4, 1), | ||
((32, 32), (1024, 1024), (32, 32), 8, None, 1 / 2), | ||
((32, 32), (1024, 1024), (32, 32), None, 2, None), | ||
((32, 32), (1024, 1024), (32, 32), None, None, 1 / 2), | ||
((None, None), (1024, 1024), (32, 32), 8, 2, None), | ||
(None, (1024, 1024), (32, 32), 8, 2, None), | ||
(None, (1024, 1024), (32, 32), None, None, 1), | ||
(None, (1024, 1024), None, 8, None, 1), | ||
), | ||
) | ||
def test_valid_params(ppd, shape, visual_size, n_rings, ring_width, frequency): | ||
resolve_circular_params( | ||
ppd=ppd, | ||
shape=shape, | ||
visual_size=visual_size, | ||
n_rings=n_rings, | ||
ring_width=ring_width, | ||
frequency=frequency, | ||
) |