Skip to content

Commit c81afe6

Browse files
committed
parrec2nii added
1 parent 421837e commit c81afe6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

bin/parrec2nii

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""PAR/REC to NIfTI converter
33
"""
44

5-
from nibabel.parrec2nii_cmd import main
5+
from nibabel.cmdline.parrec2nii import main
66

77

88
if __name__ == '__main__':
File renamed without changes.

nibabel/cmdline/tests/__init__.py

Whitespace-only changes.

nibabel/tests/test_parrec2nii.py renamed to nibabel/cmdline/tests/test_parrec2nii.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from numpy import array as npa
77

88
import nibabel
9-
from nibabel import parrec2nii_cmd as parrec2nii
9+
from nibabel.cmdline import parrec2nii
1010

1111
from mock import Mock, MagicMock, patch
1212
from nose.tools import assert_true
@@ -29,10 +29,10 @@
2929
[ 0. , 0. , 0. , 1. ]])
3030

3131

32-
@patch('nibabel.parrec2nii_cmd.verbose')
33-
@patch('nibabel.parrec2nii_cmd.io_orientation')
34-
@patch('nibabel.parrec2nii_cmd.nifti1')
35-
@patch('nibabel.parrec2nii_cmd.pr')
32+
@patch('nibabel.cmdline.parrec2nii.verbose')
33+
@patch('nibabel.cmdline.parrec2nii.io_orientation')
34+
@patch('nibabel.cmdline.parrec2nii.nifti1')
35+
@patch('nibabel.cmdline.parrec2nii.pr')
3636
def test_parrec2nii_sets_qform_sform_code1(*args):
3737
# Check that set_sform(), set_qform() are called on the new header.
3838
parrec2nii.verbose.switch = False
@@ -67,7 +67,7 @@ def test_parrec2nii_sets_qform_sform_code1(*args):
6767
nhdr.set_sform.assert_called_with(AN_OLD_AFFINE, code=1)
6868

6969

70-
@patch('nibabel.parrec2nii_cmd.verbose')
70+
@patch('nibabel.cmdline.parrec2nii.verbose')
7171
def test_parrec2nii_save_load_qform_code(*args):
7272
# Tests that after parrec2nii saves file, it has the sform and qform 'code'
7373
# set to '1', which means 'scanner', so that other software, e.g. FSL picks

0 commit comments

Comments
 (0)