forked from nipreps/fmriprep
-
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.
FIX: Clarify phase encoding direction, rather than axis
Backport of niprepsgh-2302 to 20.2.x series Co-authored-by: Mathias Goncalves <mathiasg@stanford.edu> Co-authored-by: Christopher J. Markiewicz <markiewicz@stanford.edu>
- 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