-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2690 from effigies/bp/2302
FIX: Clarify phase encoding direction, rather than axis
- Loading branch information
Showing
4 changed files
with
64 additions
and
7 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
Empty file.
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,21 @@ | ||
import pytest | ||
|
||
from ..reports import get_world_pedir | ||
|
||
|
||
@pytest.mark.parametrize("orientation,pe_dir,expected", [ | ||
('RAS', 'j', 'Posterior-Anterior'), | ||
('RAS', 'j-', 'Anterior-Posterior'), | ||
('RAS', 'i', 'Left-Right'), | ||
('RAS', 'i-', 'Right-Left'), | ||
('RAS', 'k', 'Inferior-Superior'), | ||
('RAS', 'k-', 'Superior-Inferior'), | ||
('LAS', 'j', 'Posterior-Anterior'), | ||
('LAS', 'i-', 'Left-Right'), | ||
('LAS', 'k-', 'Superior-Inferior'), | ||
('LPI', 'j', 'Anterior-Posterior'), | ||
('LPI', 'i-', 'Left-Right'), | ||
('LPI', 'k-', 'Inferior-Superior'), | ||
]) | ||
def test_get_world_pedir(tmpdir, orientation, pe_dir, expected): | ||
assert get_world_pedir(orientation, pe_dir) == expected |
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